[Bf-blender-cvs] [106293c] soc-2016-uv_tools: Made incremental snapping intervalls smaller for UV editor

Phil Gosch noreply at git.blender.org
Fri Jun 10 14:13:23 CEST 2016


Commit: 106293c16dbe36c6bf941544be8f2a39ad42ce3c
Author: Phil Gosch
Date:   Fri Jun 10 14:12:48 2016 +0200
Branches: soc-2016-uv_tools
https://developer.blender.org/rB106293c16dbe36c6bf941544be8f2a39ad42ce3c

Made incremental snapping intervalls smaller for UV editor

Before the intervall was set to 0.125 which effectively resulted in 8 positions across the UV space (per axis).
I halved that value, holding shift enables an even finer movement.

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

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

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 5b1a584..74ed201 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -4144,7 +4144,12 @@ static void initSnapSpatial(TransInfo *t, float r_snap[3])
 			r_snap[2] = r_snap[1] * 0.1f;
 		}
 	}
-	else if (ELEM(t->spacetype, SPACE_IMAGE, SPACE_CLIP)) {
+	else if (t->spacetype == SPACE_IMAGE) {
+		r_snap[0] = 0.0f;
+		r_snap[1] = 0.0625f;
+		r_snap[2] = 0.03125f;
+	}
+	else if (t->spacetype == SPACE_CLIP) {
 		r_snap[0] = 0.0f;
 		r_snap[1] = 0.125f;
 		r_snap[2] = 0.0625f;




More information about the Bf-blender-cvs mailing list