Fix T57086: Offset Even option is unclickable
authorCampbell Barton <ideasman42@gmail.com>
Mon, 10 Dec 2018 05:51:53 +0000 (16:51 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 10 Dec 2018 05:51:53 +0000 (16:51 +1100)
source/blender/editors/transform/transform_generics.c

index 209e87f92b8a5daf3bccd326d0cb2b760450e74b..c566bcb726669c3cdd51335966aea15ac0bdbd5b 100644 (file)
@@ -1374,7 +1374,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
                }
 
                if (prop_id && (prop = RNA_struct_find_property(op->ptr, prop_id))) {
-                       SET_FLAG_FROM_TEST(t->flag, RNA_property_boolean_get(op->ptr, prop), T_ALT_TRANSFORM);
+                       SET_FLAG_FROM_TEST(t->flag, !RNA_property_boolean_get(op->ptr, prop), T_ALT_TRANSFORM);
                }
        }