Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-09Pose library: replace f-strings by format for I18nDamien Picard
Unfortunately, messages cannot be properly extracted from f-strings. Use format() method instead. Reviewed By: Sybren A. Stüvel, Campbell Barton Differential Revision: https://developer.blender.org/D15615
2022-10-03Pose Library: remove unused functionSybren A. Stüvel
Remove `PoseActionCreator._store_parameters_from_callback()`, as it doesn't have any current use. No functional changes.
2022-07-21Pose Library: remove warningSybren A. Stüvel
The warning "In heavily development, things may change" is no longer true, and can be removed.
2022-07-21Pose Library: add documentation URLSybren A. Stüvel
The pose library has quite nice documentation. It would be a shame if nobody would find it.
2022-04-07Pose Library: better support for legacy pose librariesSybren A. Stüvel
Rename "old-style pose library" to "legacy pose library" for consistency with other code, and add pose library conversion operator for use in the "Pose Library (Legacy)" Armature properties panel.
2022-02-11File headers: use SPDX license identifiersCampbell Barton
Some files needed to be changed manually.
2022-02-11File headers: use SPDX license identifiersCampbell Barton
See T95597
2022-01-31PoseLib: use bpy.utils.flip_name()Demeter Dzadik
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
2021-12-21Fix T94264: Pose Library, doubleclick-to-apply only in asset browserSybren A. Stüvel
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.
2021-12-01Cleanup: trailing space & tabs to spacesCampbell Barton
2021-11-23Pose Library: Update to changed operator name in masterJulian Eisel
See 9e5aae4215d0.
2021-11-18Pose Library: mark 'for keymap' operators as internalSybren A. Stüvel
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).
2021-11-18Pose Library: explain why the 'for keymap' operators are thereSybren A. Stüvel
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.
2021-11-18Pose Library: rename apply/blend buttons in the asset browserSybren A. Stüvel
Shorten "Apply Pose Asset" to just "Apply", and change "Blend Pose Asset" to "Interactive Blend" to emphasise it's a modal operator.
2021-11-16Pose library: remove unused parameterSybren A. Stüvel
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.
2021-11-01Pose Library: Adopt to new asset browser refresh operatorJulian Eisel
The new operator introduced in rBdcdbaf89bd11 needs to be used here now.
2021-10-19Pose Library: explicitly call `pose_action.asset_generate_preview()`Sybren A. Stüvel
Explicitly call `ID.asset_generate_preview()` after marking the pose as asset. This is required since rB1c5722ba071a
2021-10-08Pose Library: refresh dopesheet & 3D view when changing asset librarySybren A. Stüvel
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.
2021-10-07Pose Library: do a broader search for the asset browserSybren A. Stüvel
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.
2021-10-05Pose Library: assign catalog when creating new pose assetSybren A. Stüvel
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.
2021-10-05Cleanup: pose library, remove debug printSybren A. Stüvel
No functional changes.
2021-10-05Pose Library: only allow pasting assets when in Current File librarySybren A. Stüvel
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.
2021-10-05Pose Library: avoid breakage due to changes in the asset browserSybren A. Stüvel
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.
2021-09-29Update Pose Library add-on to work without asset categoriesJulian Eisel
Pose Library panels are now always displayed in pose mode, and don't hide or unhide anymore depending on the visible asset types.
2021-09-27Hide Pose Library panels unless in Pose ModeJulian Eisel
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
2021-08-11Pose Library: change how cleanup is done after Copy As AssetSybren A. Stüvel
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.
2021-08-11Pose Library: use functions instead of operators to mark/clear assetSybren A. Stüvel
Replace `ASSET_OT_mark` and `ASSET_OT_clear` operator calls with calls to resp. `ID.asset_mark()` and `ID.asset_clear()`. No functional changes.
2021-08-10Pose Library: transparently handle removal of experimental flagSybren A. Stüvel
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.
2021-08-09Cleanup/fixes in UI messages.Bastien Montagne
2021-08-06Pose Library: update for rename of asset_library to asset_library_refSybren A. Stüvel
Blender changed `context.asset_library` to `asset_library_ref` in rB9cff9f9f5df034ca27848875c25471dd952c34c4, for which the pose library is now also updated. No functional changes.
2021-08-03Pose Library: append to correct menu class for asset browserSybren A. Stüvel
Append the pose library operators to the new `ASSETBROWSER_MT_context_menu` class instead of the old `FILEBROWSER_MT_context_menu` class.
2021-08-03Pose Library: remove "Open In Blender" from context menuSybren A. Stüvel
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.
2021-07-21Pose Library: Update variable name after change in RNAJulian Eisel
I just renamed this variable in DNA/RNA.
2021-07-19Pose Library: remove unused macrosSybren A. Stüvel
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.
2021-07-19Pose Library: add category to `DOPESHEET_PT_asset_panel` panelSybren A. Stüvel
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.
2021-07-15Cleanup, pose library: apparently ampersands are still allowedSybren A. Stüvel
Roll back a802049841cbfc546395abc.
2021-07-15Cleanup: pose library, remove ampersand from labelSybren A. Stüvel
2021-07-15Cleanup, pose library: remove unnecessary label from panelSybren A. Stüvel
2021-07-15Cleanup: title-case for pose library operatorSybren A. Stüvel
No functional changes.
2021-07-15New add-on: Pose Library v2.0Sybren A. Stüvel
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.