Age | Commit message (Collapse) | Author |
|
Some files needed to be changed manually.
|
|
See T95597
|
|
Instead of re-implementing BLI_string_flip_side_name, use the python function that was exposed in D12322.
Reviewed By: sybren
Differential Revision: https://developer.blender.org/D13191
|
|
Fix a keymap collision between the pose library and the file manager.
Only allow `applying a pose by doubleclicking it in the asset browser, and
not in the file browser. This prevents a crash; appending an Action
would temp-load it in order to apply it as a pose, which of course
conflicts with the "Append" functionality.
|
|
|
|
See 9e5aae4215d0.
|
|
The `POSELIB_OT_apply_pose_asset_for_keymap` and
`POSELIB_OT_blend_pose_asset_for_keymap` operators are a bit special, as
they are for use in the keymap only. Marking them as `INTERNAL` removes
them from the F3 menu (which will already contain the regular
apply/blend operators anyway).
|
|
The for-keymap version of the apply/blend operators take the Window
Manager's `poselib_flipped` property, and passes it to the regular
apply/blend operator. This makes it possible to bind a key to the
operator and still have it respect the global "Flip Pose" checkbox.
This behaviour was already in, this commit just adds a comment that
explains this.
No functional changes.
|
|
Shorten "Apply Pose Asset" to just "Apply", and change "Blend Pose
Asset" to "Interactive Blend" to emphasise it's a modal operator.
|
|
Remove an unused `context` parameter from
`pose_library.pose_creation.create_pose_asset()`. Normally this wouldn't
make it into the release branch, but this particular function could be
the basis for custom pose library creation code, and thus it's good if
it has a nicer API in the release.
No functional changes.
|
|
The new operator introduced in rBdcdbaf89bd11 needs to be used here now.
|
|
Explicitly call `ID.asset_generate_preview()` after marking the pose as
asset. This is required since rB1c5722ba071a
|
|
The Create Pose Asset (`POSELIB_OT_create_pose_asset`) operator stores
the created asset in the current blend file. To avoid confusion, its
poll function refuses the use of the operator when the asset browser is
showing a different asset library. This means that the panels containing
a button for this operator need to be refreshed whenever another asset
library is selected.
|
|
When creating a pose, it gets assigned to the catalog that is currently
shown in the asset browser. To find which asset browser to use for this,
if the current window does not contain one, other windows are considered
as well. Before this change this was limited to the current screen.
|
|
When creating a new pose asset (`POSELIB_OT_create_pose_asset`), assign
it the the Asset Browser's active catalog. This ensures that the asset
browser actually shows the newly created catalog.
When there is no asset browser open, no catalog is assigned. When there
are multiple asset browsers, the biggest one wins.
|
|
No functional changes.
|
|
Only allow the Paste Asset button to work when the asset browser is set
to the "Current File" library. This ensures that the pasted asset can
actually be seen.
Without this change, an artist is likely to assume the asset will be
pasted into the shown library. This is not the case, though -- pasted
assets always go into the current blend file.
|
|
Asset browser moved from Categories (the big, fixed buttons) to Catalogs
(the tree-based, user-creatable organisation system). This required some
changes to the Pose Library code, as that was still expecting to be able
to use the categories system.
The entire workflow has to be looked at better, but at least now it's not
broken anymore.
|
|
Pose Library panels are now always displayed in pose mode, and don't
hide or unhide anymore depending on the visible asset types.
|
|
Otherwise, there will be a useless tab in the sidebar, and panels in the
Asset Browser and Dopesheet that do nothing. So far the Asset Browser
hides these panels unless the Animation category is selected, but this
won't work once asset catalogs replace the categories.
Differential Revision: https://developer.blender.org/D12576
|
|
Copy As Asset creates an asset datablock, saves it to disk, and then
removes it again. This removal has a check to ensure the temp datablock
isn't accidentally still in use by something. When this check fails, it now
still forces the cleanup. The message is now there just to ask people to
file a bug report, instead of blocking their workflow altogether.
|
|
Replace `ASSET_OT_mark` and `ASSET_OT_clear` operator calls with calls to
resp. `ID.asset_mark()` and `ID.asset_clear()`.
No functional changes.
|
|
Add code to deal with the future removal of the experimental flag
`context.preferences.experimental.use_asset_browser`.
If the `use_asset_browser` attribute is no longer there, allow the pose
library UI elements to be shown.
|
|
|
|
Blender changed `context.asset_library` to `asset_library_ref` in
rB9cff9f9f5df034ca27848875c25471dd952c34c4, for which the pose library
is now also updated.
No functional changes.
|
|
Append the pose library operators to the new `ASSETBROWSER_MT_context_menu`
class instead of the old `FILEBROWSER_MT_context_menu` class.
|
|
Remove the "Open In Blender" (`ASSET_OT_open_containing_blend_file`)
operator from the asset browser poselib-specific context menu. This option
is now added by the asset browser itself, and thus was appearing twice.
|
|
I just renamed this variable in DNA/RNA.
|
|
Remove macro operators that were once used in the default keymap. It was
decided to remove them as the "select an asset and then run an operator
on it" approach was too easy to break.
|
|
Add `bl_category` to the animation editor panel of the pose library. This
doesn't change anything in the GUI, but it does avoid the warning that
no category was set.
No functional changes.
|
|
Roll back a802049841cbfc546395abc.
|
|
|
|
|
|
No functional changes.
|
|
Add the Pose Library 2.0 add-on, which is based on the Asset Browser. It
heavily depends on functionality of Blender itself, most notably in
`pose_lib_2.c`.
This add-on will be enabled by default by Blender, in order to be a proper
replacement for the old, build-in pose library. It can also convert pose
libraries from the old to the new one.
|