[Bf-blender-cvs] [4c46a098242] master: Fix constrain plane not being set in tranform code
Germano Cavalcante
noreply at git.blender.org
Fri Sep 25 17:28:29 CEST 2020
Commit: 4c46a09824256275d8b630213bc79eb78f458ad3
Author: Germano Cavalcante
Date: Fri Sep 25 12:28:11 2020 -0300
Branches: master
https://developer.blender.org/rB4c46a09824256275d8b630213bc79eb78f458ad3
Fix constrain plane not being set in tranform code
Error introduced in rB388b9162469650c
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index ab24bbb35d4..7ed276e45de 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -770,7 +770,12 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, bool is
stopConstraint(t);
}
else {
- setUserConstraint(t, constraint_axis, is_plane ? msg3 : msg2);
+ if (is_plane == false) {
+ setUserConstraint(t, constraint_axis, msg2);
+ }
+ else {
+ setUserConstraint(t, constraint_plane, msg3);
+ }
}
}
t->redraw |= TREDRAW_HARD;
More information about the Bf-blender-cvs
mailing list