[Bf-blender-cvs] [bc39fa947a8] master: Cleanup: redundant function call

Campbell Barton noreply at git.blender.org
Thu May 9 05:13:20 CEST 2019


Commit: bc39fa947a821f1114fb5594dcd22958f7958df9
Author: Campbell Barton
Date:   Thu May 9 08:54:27 2019 +1000
Branches: master
https://developer.blender.org/rBbc39fa947a821f1114fb5594dcd22958f7958df9

Cleanup: redundant function call

===================================================================

M	source/blender/editors/transform/transform.c

===================================================================

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 81405b55ac2..09f198ff14c 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -4917,8 +4917,7 @@ static void initSnapSpatial(TransInfo *t, float r_snap[3])
   }
   else if (t->spacetype == SPACE_NODE) {
     r_snap[0] = 0.0f;
-    r_snap[1] = ED_node_grid_size();
-    r_snap[2] = ED_node_grid_size();
+    r_snap[1] = r_snap[2] = ED_node_grid_size();
   }
   else if (t->spacetype == SPACE_GRAPH) {
     r_snap[0] = 0.0f;



More information about the Bf-blender-cvs mailing list