[Bf-blender-cvs] [bfb05ee1546] master: Fix T64669: Redo transform fails with constrained axis

Campbell Barton noreply at git.blender.org
Fri Jun 7 06:14:33 CEST 2019


Commit: bfb05ee15462f83d5cc504e893bc991f067b5afe
Author: Campbell Barton
Date:   Fri Jun 7 14:11:54 2019 +1000
Branches: master
https://developer.blender.org/rBbfb05ee15462f83d5cc504e893bc991f067b5afe

Fix T64669: Redo transform fails with constrained axis

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

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

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 2deba69ed22..1170e2ea5a8 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -2665,7 +2665,7 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
   /* Constraint init from operator */
   if ((t->flag & T_MODAL) ||
       /* For mirror operator the constraint axes are effectively the values. */
-      (RNA_struct_find_property(op->ptr, "values") == NULL)) {
+      (RNA_struct_find_property(op->ptr, "value") == NULL)) {
     if ((prop = RNA_struct_find_property(op->ptr, "constraint_axis")) &&
         RNA_property_is_set(op->ptr, prop)) {
       bool constraint_axis[3];



More information about the Bf-blender-cvs mailing list