Cleanup: const qualifier of return type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -39,8 +39,8 @@ class BlenderViewportParameters {
|
||||
BlenderViewportParameters();
|
||||
explicit BlenderViewportParameters(BL::SpaceView3D &b_v3d);
|
||||
|
||||
const bool modified(const BlenderViewportParameters &other) const;
|
||||
const bool custom_viewport_parameters() const;
|
||||
bool modified(const BlenderViewportParameters &other) const;
|
||||
bool custom_viewport_parameters() const;
|
||||
|
||||
/* Retrieve the render pass type that needs to be displayed on the given `SpaceView3D`
|
||||
* When the `b_v3d` parameter is not given `PASS_NONE` will be returned. */
|
||||
|
Reference in New Issue
Block a user