diff options
-rw-r--r-- | pose_library/gui.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pose_library/gui.py b/pose_library/gui.py index 5ac6a934..a2f04a22 100644 --- a/pose_library/gui.py +++ b/pose_library/gui.py @@ -41,7 +41,12 @@ class VIEW3D_PT_pose_library(Panel): @classmethod def poll(cls, context: Context) -> bool: - return context.preferences.experimental.use_asset_browser + exp_prefs = context.preferences.experimental + try: + return exp_prefs.use_asset_browser + except AttributeError: + # The 'use_asset_browser' experimental option was removed from Blender. + return True def draw(self, context: Context) -> None: layout = self.layout @@ -172,7 +177,12 @@ class DOPESHEET_PT_asset_panel(Panel): @classmethod def poll(cls, context: Context) -> bool: - return context.preferences.experimental.use_asset_browser + exp_prefs = context.preferences.experimental + try: + return exp_prefs.use_asset_browser + except AttributeError: + # The 'use_asset_browser' experimental option was removed from Blender. + return True def draw(self, context: Context) -> None: layout = self.layout |