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:
-rw-r--r--pose_library/gui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pose_library/gui.py b/pose_library/gui.py
index bf2693e9..268c71cb 100644
--- a/pose_library/gui.py
+++ b/pose_library/gui.py
@@ -39,6 +39,10 @@ class VIEW3D_PT_pose_library(Panel):
bl_category = "Animation"
bl_label = "Pose Library"
+ @classmethod
+ def poll(cls, context: Context) -> bool:
+ return context.preferences.experimental.use_asset_browser
+
def draw(self, context: Context) -> None:
layout = self.layout
@@ -165,6 +169,10 @@ class DOPESHEET_PT_asset_panel(Panel):
bl_region_type = "UI"
bl_label = "Create Pose Asset"
+ @classmethod
+ def poll(cls, context: Context) -> bool:
+ return context.preferences.experimental.use_asset_browser
+
def draw(self, context: Context) -> None:
layout = self.layout
col = layout.column(align=True)