Commit: 94b9141c953bb4c276631bd40145f81f07304c9c
Author: Germano Cavalcante
Date:   Tue May 12 14:35:16 2020 -0300
Branches: master
https://developer.blender.org/rB94b9141c953bb4c276631bd40145f81f07304c9c

Fix T76693: Inconsistent rotation Shortcut vs Gizmos

Problem introduced in rB4deea4f4c57a

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

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 acd8cd821a8..0d6055563b4 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -1668,7 +1668,13 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator 
*op, const wmEvent *eve
 
     if (op && (prop = RNA_struct_find_property(op->ptr, "orient_axis"))) {
       t->orient_axis = RNA_property_enum_get(op->ptr, prop);
+
+      /* For transfor modes that require "orient_axis" use
+       * `V3D_ORIENT_VIEW` as default. */
       orient_type_default = V3D_ORIENT_VIEW;
+      if (t->con.mode & CON_APPLY) {
+        orient_index = 1;
+      }
     }
     if (op && (prop = RNA_struct_find_property(op->ptr, "orient_axis_ortho"))) 
{
       t->orient_axis_ortho = RNA_property_enum_get(op->ptr, prop);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to