From 5855f317a7070d69dbb94761c5a2c2f53b058a6e Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Fri, 18 Sep 2020 00:42:24 +0200 Subject: LookDev: Lock HDRI rotation to View This adds an option for the HDRI rotation to follow the view rotation. When this option is enabled, this allows EEVEE materials to be used as matcaps for sculpting and painting. This has an extra performance cost when orbiting around the model as the lookdev cache needs to be recalculated, but in my test it is barely noticeable. Reviewed By: fclem Differential Revision: https://developer.blender.org/D8566 --- release/scripts/startup/bl_ui/space_view3d.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 6bd5532dd68..269237e804c 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -5720,7 +5720,13 @@ class VIEW3D_PT_shading_lighting(Panel): split = layout.split(factor=0.9) col = split.column() - col.prop(shading, "studiolight_rotate_z", text="Rotation") + + row = col.row() + row.prop(shading, "use_studiolight_view_rotation", text="", icon='WORLD', toggle=True) + row = row.row() + row.active = shading.use_world_space_lighting + row.prop(shading, "studiolight_rotate_z", text="Rotation") + col.prop(shading, "studiolight_intensity") col.prop(shading, "studiolight_background_alpha") col.prop(shading, "studiolight_background_blur") -- cgit v1.2.3