[Bf-blender-cvs] [508124b5bea] master: Fix error in last transform orient commit

Germano Cavalcante noreply at git.blender.org
Mon May 11 18:25:44 CEST 2020


Commit: 508124b5bea44a8a473da02dd23ad492ef276708
Author: Germano Cavalcante
Date:   Mon May 11 13:25:26 2020 -0300
Branches: master
https://developer.blender.org/rB508124b5bea44a8a473da02dd23ad492ef276708

Fix error in last transform orient commit

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

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

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

diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index 2a3c8ef60c3..23f1295db3e 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -1698,7 +1698,10 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
                                                                   orient_slot->index_custom);
 
         /* Add the slot value to the orient_type to be used for Redo. */
-        orient_type_constraint = orient_slot->type + orient_slot->index_custom;
+        orient_type_constraint = orient_slot->type;
+        if (orient_type_constraint == V3D_ORIENT_CUSTOM) {
+          orient_type_constraint += orient_slot->index_custom;
+        }
       }
     }



More information about the Bf-blender-cvs mailing list