diff options
Diffstat (limited to 'intern/cycles/blender/blender_viewport.cpp')
-rw-r--r-- | intern/cycles/blender/blender_viewport.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_viewport.cpp b/intern/cycles/blender/blender_viewport.cpp index 7af509aab09..93dd8faa450 100644 --- a/intern/cycles/blender/blender_viewport.cpp +++ b/intern/cycles/blender/blender_viewport.cpp @@ -21,6 +21,7 @@ BlenderViewportParameters::BlenderViewportParameters() : use_scene_world(true), use_scene_lights(true), studiolight_rotate_z(0.0f), + studiolight_intensity(1.0f), studiolight_background_alpha(1.0f), studiolight_path(ustring()) { @@ -36,6 +37,7 @@ BlenderViewportParameters::BlenderViewportParameters(BL::SpaceView3D &b_v3d) use_scene_lights = b_v3d.shading().use_scene_lights_render(); if (!use_scene_world) { studiolight_rotate_z = b_v3d.shading().studiolight_rotate_z(); + studiolight_intensity = b_v3d.shading().studiolight_intensity(); studiolight_background_alpha = b_v3d.shading().studiolight_background_alpha(); studiolight_path = b_v3d.shading().selected_studio_light().path(); } @@ -47,6 +49,7 @@ const bool BlenderViewportParameters::modified(const BlenderViewportParameters & { return use_scene_world != other.use_scene_world || use_scene_lights != other.use_scene_lights || studiolight_rotate_z != other.studiolight_rotate_z || + studiolight_intensity != other.studiolight_intensity || studiolight_background_alpha != other.studiolight_background_alpha || studiolight_path != other.studiolight_path; } |