Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-21 19:24:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-21 19:24:43 +0400
commit577bdfbb5b7be71d0d709595b99ef75308a8183e (patch)
treeec9fdc094349d9345df4fb78289fd6f5eb691eb1
parent15266204164fe94074a1a4867d9ff01d71d02e0d (diff)
Transform: edit to recent commit
Copying long comments about & `#if 0` is hint it could be defined in one place.
-rw-r--r--source/blender/editors/transform/transform.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 09e9894dd2d..58dee620a61 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