[Bf-blender-cvs] [e12eb89f22c] master: Fix T81429: move tool's axis constraints not drawn completely when using local orientation

Germano Cavalcante noreply at git.blender.org
Wed Jan 20 16:35:45 CET 2021


Commit: e12eb89f22c6ee17971195e0221a8e8b8ee3db8a
Author: Germano Cavalcante
Date:   Wed Jan 20 12:35:38 2021 -0300
Branches: master
https://developer.blender.org/rBe12eb89f22c6ee17971195e0221a8e8b8ee3db8a

Fix T81429: move tool's axis constraints not drawn completely when using local orientation

In fact, the drawing was that of the local contraint axis (which is
summarized so as not to fill the screen with too much information).

Use the local contraint axis only when more than one object is selected.

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

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

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

diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 3afd77ba8e4..5abe92b385a 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -675,7 +675,7 @@ void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[])
 
 void setLocalConstraint(TransInfo *t, int mode, const char text[])
 {
-  if (t->flag & T_EDIT) {
+  if ((t->flag & T_EDIT) || t->data_len_all == 1) {
     /* Although in edit-mode each object has its local space, use the
      * orientation of the active object. */
     setConstraint(t, mode, text);



More information about the Bf-blender-cvs mailing list