Blender Git Commits

Blender Git "temp-pose-flipping-fix-attempt" branch commits.

Page: 7 / 16

April 13, 2021, 10:01 (GMT)
Asset Browser: Apply a pose before rendering its preview icon

When rendering the preview icon of an Action, apply it to the pose
object first. This ensures that the "Refresh" button of a pose actually
uses that pose.

This splits some functions into two flavours, one that acts on all bones
and one that acts on the selected bones only. Normal use of the pose
library only acts on selected bones, but for the preview the entire pose
from the library is applied, regardless of selection.
April 13, 2021, 08:48 (GMT)
Cleanup: Pose library, move pose backup code into its own file

Move the pose backup & restore functionality into its own file, so that
the functions can be called from other places in Blender as well.

No functional changes.
April 12, 2021, 18:01 (GMT)
Merge branch 'master' into asset-browser-poselib
April 12, 2021, 16:11 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 12, 2021, 16:02 (GMT)
Assets: explicitly free the temp-loaded asset datablock

After temp-loading an asset datablock, explicitly free it before calling
`BLO_library_temp_free()`. Without this step, normal linking would be
performed, causing temp datablocks to actually be linked into the current
blend file.
April 12, 2021, 15:20 (GMT)
Pose Library: set default blend percentage to 0%

Set default blend percentage to 0% to allow smoothly blending of the pose
asset into the current pose.
April 12, 2021, 14:25 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 9, 2021, 15:32 (GMT)
Use correct add-ons branch for `make update`

Also add TODO comments, hoping they help us not forget changing this
back for the merge to master.
April 9, 2021, 10:57 (GMT)
Fix error on `context.copy()` because of asset-handle design

The File/Asset Browser no longer provides the `asset_handle` pointer. In
Python `asset_file_handle` needs to be used for now (will change in
future).
April 9, 2021, 10:53 (GMT)
Assets: make `ASSET_OT_open_containing_blend_file` work in UIList

Make `ASSET_OT_open_containing_blend_file` in a asset view UIList as
well as the Asset Browser. This uses the context variables
`asset_file_handle` and `asset_library`, which are temporary in lieu of
a better asset API.
April 9, 2021, 09:32 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 7, 2021, 15:48 (GMT)
Update add-on HEAD for latest merge
April 7, 2021, 15:10 (GMT)
Merge branch 'master' into asset-browser-poselib
April 2, 2021, 17:11 (GMT)
Expose more asset info and utilities in the Python API

Needed so the pose library add-on can keep its operators work outside of
the Asset Browser context, namely with the asset view template.

An issue here is that we can't expose an asset handle from the Asset
Browser, because there is not permanently saved one whose pointer we can
pass around. This is planned to be addressed, but for now Python will
have to use the file wrapped by the asset-handle directly, via
`context.asset_file_handle`.
April 2, 2021, 12:50 (GMT)
Merge branch 'master' into asset-browser-poselib
April 1, 2021, 15:32 (GMT)
Support custom context menu entries for UI-lists, e.g. for pose assets

Makes it possible to add custom entries to the context menu of UI List items, by doing the following:
`bpy.types.UI_MT_list_item_context_menu.prepend(some_draw_function)`/`append(...)`.

The given draw function must check if the list is of the correct type. For that
to work I made it possible to get the hovered UI List using `context.ui_list`
and the list-ID via `ui_list.list_id`.
April 1, 2021, 10:31 (GMT)
Merge remote-tracking branch 'origin/master' into asset-browser-poselib
April 1, 2021, 09:03 (GMT)
Pose Library: rename `apply_flipped` to `flipped`

Rename the operator property `apply_flipped` to simply `flipped`, as the
verb ("apply") is already in the operator name. This will make it possible
to add a `flipped` property to the select/deselect operators too, keeping
things consistent.

No functional changes.
March 31, 2021, 16:11 (GMT)
Pose asset operators: Check the type of the asset in the operator poll

Check that the asset received from context actually is an action ID
asset.
March 31, 2021, 15:54 (GMT)
Add button to refresh the asset list from the asset view template

Adds an operator to refresh the asset list and exposes that next to the
asset library selector above the template, when showing an external
library.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021