diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-05-27 12:10:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-05-27 12:36:30 +0300 |
commit | 8f43e31a7195b35b73d662775b4105a880d52a57 (patch) | |
tree | 317ed036f485e2cbfb8ae44cd71d01ae6832f561 /intern/cycles/blender/blender_viewport.cpp | |
parent | 4ea77429736737bf074d4294276e4cdcfce87ff9 (diff) |
Cleanup: const qualifier of return type
Diffstat (limited to 'intern/cycles/blender/blender_viewport.cpp')
-rw-r--r-- | intern/cycles/blender/blender_viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_viewport.cpp b/intern/cycles/blender/blender_viewport.cpp index 99dbde91858..dbfee33fd59 100644 --- a/intern/cycles/blender/blender_viewport.cpp +++ b/intern/cycles/blender/blender_viewport.cpp @@ -57,7 +57,7 @@ BlenderViewportParameters::BlenderViewportParameters(BL::SpaceView3D &b_v3d) } /* Check if two instances are different. */ -const bool BlenderViewportParameters::modified(const BlenderViewportParameters &other) const +bool BlenderViewportParameters::modified(const BlenderViewportParameters &other) const { return use_scene_world != other.use_scene_world || use_scene_lights != other.use_scene_lights || studiolight_rotate_z != other.studiolight_rotate_z || @@ -66,7 +66,7 @@ const bool BlenderViewportParameters::modified(const BlenderViewportParameters & studiolight_path != other.studiolight_path; } -const bool BlenderViewportParameters::custom_viewport_parameters() const +bool BlenderViewportParameters::custom_viewport_parameters() const { return !(use_scene_world && use_scene_lights); } |