Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-10-08 19:24:04 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-10-08 19:39:41 +0300
commit569510d7044043b42a3abfa55e739a89673ed14f (patch)
tree1005e03cdc2725c0599b4f0cda320ac16619034f /source/blender/editors/transform/transform_constraints.c
parentea5f2f88b34ef92cfba9619439d8a786e5befcaa (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_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 3a8f53220e2..de1c875a7b0 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -425,7 +425,8 @@ static void applyAxisConstraintVec(
else if (t->con.mode & CON_AXIS1) {
copy_v3_v3(c, t->spacemtx[1]);
}
- else if (t->con.mode & CON_AXIS2) {
+ else {
+ BLI_assert(t->con.mode & CON_AXIS2);
copy_v3_v3(c, t->spacemtx[2]);
}