Fix: UI: Hide studiolight world orientation button for Cycles

This option is not available in EEVEE anymore. Limit the
visibility to Workbench.

Fix #124521

Pull Request: https://projects.blender.org/blender/blender/pulls/124717
This commit is contained in:
Clément Foucault
2024-07-15 11:59:26 +02:00
committed by Clément Foucault
parent 4d6ba7604d
commit c7bcd1137f
+1 -1
View File
@@ -6918,7 +6918,7 @@ class VIEW3D_PT_shading_lighting(Panel):
engine = context.scene.render.engine
row = col.row()
if engine != 'BLENDER_EEVEE_NEXT':
if engine == 'BLENDER_WORKBENCH':
row.prop(shading, "use_studiolight_view_rotation", text="", icon='WORLD', toggle=True)
row = row.row()
row.prop(shading, "studiolight_rotate_z", text="Rotation")