diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 19:24:04 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 19:39:41 +0300 |
commit | 569510d7044043b42a3abfa55e739a89673ed14f (patch) | |
tree | 1005e03cdc2725c0599b4f0cda320ac16619034f /source/blender/editors/transform/transform_convert_object.c | |
parent | ea5f2f88b34ef92cfba9619439d8a786e5befcaa (diff) |
Fix T81529: Can't move with constraint to a zero-size local axis
To fix the problem, it was necessary to create a fallback for the
zero-sized axis in local orientation.
This also affects the gizmos.
Diffstat (limited to 'source/blender/editors/transform/transform_convert_object.c')
-rw-r--r-- | source/blender/editors/transform/transform_convert_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_convert_object.c b/source/blender/editors/transform/transform_convert_object.c index 4bf0f842f2f..97ef1e94d45 100644 --- a/source/blender/editors/transform/transform_convert_object.c +++ b/source/blender/editors/transform/transform_convert_object.c @@ -50,6 +50,7 @@ /* Own include. */ #include "transform_convert.h" +#include "transform_orientations.h" /* -------------------------------------------------------------------- */ /** \name Object Mode Custom Data @@ -183,8 +184,7 @@ static void ObjectToTransData(TransInfo *t, TransData *td, Object *ob) } /* axismtx has the real orientation */ - copy_m3_m4(td->axismtx, ob->obmat); - normalize_m3(td->axismtx); + transform_orientations_create_from_axis(td->axismtx, UNPACK3(ob->obmat)); td->con = ob->constraints.first; |