diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-09-03 23:57:58 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-09-03 23:57:58 +0300 |
commit | a96283ba511d7ebf2c2ec2db16815b5a4b2979df (patch) | |
tree | 201fda69dccbc049e084be6fac0d50c209966e6a | |
parent | ff3a9852a77cd912a309f21aa8b7cf7eb8b8a402 (diff) |
Fix assert when cleaning constraints in the transform tool
When enabled, the modal key item "Clear Constraint" did not reset
the default orientation.
This does not bring changes in the user's point of view.
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index 8fdee0e8eec..54a3ebb8c0c 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -976,6 +976,11 @@ void startConstraint(TransInfo *t) void stopConstraint(TransInfo *t) { + if (t->orient_curr != 0) { + t->orient_curr = 0; + transform_orientations_current_set(t, t->orient_curr); + } + t->con.mode &= ~(CON_APPLY | CON_SELECT); *t->con.text = '\0'; t->num.idx_max = t->idx_max; |