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
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2021-08-06 16:26:02 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2021-08-06 16:26:02 +0300
commitaebb668f75b57ba7cbd8f8f8ad41f0ddb4f27389 (patch)
tree9f5290ea330bb18d4641d44ea5419f1b6755a525 /pose_library/gui.py
parent2aa81ec3365c5ed2478f9783f78a38e77c0ef6c1 (diff)
Pose Library: update for rename of asset_library to asset_library_ref
Blender changed `context.asset_library` to `asset_library_ref` in rB9cff9f9f5df034ca27848875c25471dd952c34c4, for which the pose library is now also updated. No functional changes.
Diffstat (limited to 'pose_library/gui.py')
-rw-r--r--pose_library/gui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pose_library/gui.py b/pose_library/gui.py
index 4518527a..5ac6a934 100644
--- a/pose_library/gui.py
+++ b/pose_library/gui.py
@@ -60,7 +60,7 @@ class VIEW3D_PT_pose_library(Panel):
activate_op_props, drag_op_props = layout.template_asset_view(
"pose_assets",
workspace,
- "asset_library",
+ "asset_library_ref",
wm,
"pose_assets",
workspace,
@@ -85,8 +85,8 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None:
return True
def is_pose_library_asset_browser() -> bool:
- asset_library = getattr(context, "asset_library", None)
- if not asset_library:
+ asset_library_ref = getattr(context, "asset_library_ref", None)
+ if not asset_library_ref:
return False
asset = getattr(context, "asset_file_handle", None)
if not asset: