[Bf-blender-cvs] [0b33068a2f8] tmp-workbench-rewrite2: remove underscores
Miguel Pozo
noreply at git.blender.org
Mon Oct 31 17:42:35 CET 2022
Commit: 0b33068a2f8726cdf0bbd762f3459292b15cdb2e
Author: Miguel Pozo
Date: Mon Oct 31 17:42:14 2022 +0100
Branches: tmp-workbench-rewrite2
https://developer.blender.org/rB0b33068a2f8726cdf0bbd762f3459292b15cdb2e
remove underscores
===================================================================
M source/blender/draw/engines/workbench/workbench_effect_dof.cc
===================================================================
diff --git a/source/blender/draw/engines/workbench/workbench_effect_dof.cc b/source/blender/draw/engines/workbench/workbench_effect_dof.cc
index 85601a96fec..22ff78b6652 100644
--- a/source/blender/draw/engines/workbench/workbench_effect_dof.cc
+++ b/source/blender/draw/engines/workbench/workbench_effect_dof.cc
@@ -139,14 +139,14 @@ void DofPass::init(const SceneState &scene_state)
near_ = -camera->clip_start;
far_ = -camera->clip_end;
- float _blades = camera->dof.aperture_blades;
- float _rotation = camera->dof.aperture_rotation;
- float _ratio = 1.0f / camera->dof.aperture_ratio;
-
- if (blades_ != _blades || rotation_ != _rotation || ratio_ != _ratio) {
- blades_ = _blades;
- rotation_ = _rotation;
- ratio_ = _ratio;
+ float blades = camera->dof.aperture_blades;
+ float rotation = camera->dof.aperture_rotation;
+ float ratio = 1.0f / camera->dof.aperture_ratio;
+
+ if (blades_ != blades || rotation_ != rotation || ratio_ != ratio) {
+ blades_ = blades;
+ rotation_ = rotation;
+ ratio_ = ratio;
setup_samples();
}
}
More information about the Bf-blender-cvs
mailing list