[Bf-blender-cvs] [577bdfb] master: Transform: edit to recent commit

Campbell Barton noreply at git.blender.org
Mon Jul 21 17:26:37 CEST 2014


Commit: 577bdfbb5b7be71d0d709595b99ef75308a8183e
Author: Campbell Barton
Date:   Tue Jul 22 01:24:43 2014 +1000
Branches: master
https://developer.blender.org/rB577bdfbb5b7be71d0d709595b99ef75308a8183e

Transform: edit to recent commit

Copying long comments about & `#if 0` is hint it could be defined in one place.

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

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

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 09e9894..58dee62 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -86,6 +86,9 @@
 
 #include "transform.h"
 
+/* Disabling, since when you type you know what you are doing, and being able to set it to zero is handy. */
+// #define USE_NUM_NO_ZERO
+
 #define MAX_INFO_LEN 256
 
 static void drawTransformApply(const struct bContext *C, ARegion *ar, void *arg);
@@ -3113,7 +3116,7 @@ static void initResize(TransInfo *t)
 	t->num.flag |= NUM_AFFECT_ALL;
 	if (!t->obedit) {
 		t->flag |= T_NO_ZERO;
-#if 0  /* Disabling, since when you type you know what you are doing, and being able to set it to zero is handy. */
+#ifdef USE_NUM_NO_ZERO
 		t->num.val_flag[0] |= NUM_NO_ZERO;
 		t->num.val_flag[1] |= NUM_NO_ZERO;
 		t->num.val_flag[2] |= NUM_NO_ZERO;
@@ -3407,7 +3410,7 @@ static void initSkinResize(TransInfo *t)
 	t->num.flag |= NUM_AFFECT_ALL;
 	if (!t->obedit) {
 		t->flag |= T_NO_ZERO;
-#if 0  /* Disabling, since when you type you know what you are doing, and being able to set it to zero is handy. */
+#ifdef USE_NUM_NO_ZERO
 		t->num.val_flag[0] |= NUM_NO_ZERO;
 		t->num.val_flag[1] |= NUM_NO_ZERO;
 		t->num.val_flag[2] |= NUM_NO_ZERO;
@@ -4519,7 +4522,7 @@ static void initCurveShrinkFatten(TransInfo *t)
 	t->num.unit_type[0] = B_UNIT_NONE;
 
 	t->flag |= T_NO_ZERO;
-#if 0  /* Disabling, since when you type you know what you are doing, and being able to set it to zero is handy. */
+#ifdef USE_NUM_NO_ZERO
 	t->num.val_flag[0] |= NUM_NO_ZERO;
 #endif
 
@@ -4596,7 +4599,7 @@ static void initMaskShrinkFatten(TransInfo *t)
 	t->num.unit_type[0] = B_UNIT_NONE;
 
 	t->flag |= T_NO_ZERO;
-#if 0  /* Disabling, since when you type you know what you are doing, and being able to set it to zero is handy. */
+#ifdef USE_NUM_NO_ZERO
 	t->num.val_flag[0] |= NUM_NO_ZERO;
 #endif




More information about the Bf-blender-cvs mailing list