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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-30 14:07:31 +0300
committerCampbell Barton <campbell@blender.org>2022-08-30 14:07:31 +0300
commite0ab4b29a9c7dfc42751a524db9b948b0636b288 (patch)
treec2ae493029ebe50bc4b962cd6b58932a481c10c7 /release
parentc7555372feae3fcce179366faac5477a505b0a64 (diff)
parent524d9a3e2fa1821d0f846877ecb3936b7c3794dd (diff)
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/userpref.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index 54de9c28144..ce23024fed5 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -1116,6 +1116,10 @@ class PREFERENCES_OT_studiolight_show(Operator):
bl_label = ""
bl_options = {'INTERNAL'}
+ @classmethod
+ def poll(cls, _context):
+ return bpy.ops.screen.userpref_show.poll()
+
def execute(self, context):
context.preferences.active_section = 'LIGHTS'
bpy.ops.screen.userpref_show('INVOKE_DEFAULT')