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>2021-02-27 23:10:18 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-02-27 23:22:47 +0300
commit92743cc895dd34bdaa165679bf9d06dfa3f8cb24 (patch)
tree1604e514b1976dba554503781cb6fc2387a5878f /source/blender/editors/transform/transform_generics.c
parentaad2f1510a80313a2272d131327442dc50152cbd (diff)
Fix T85886: Rotate Tool and Adjust Last Operation - angles inverted
The constraint was not set when redoing. This commit also removes `postInputRotation`. I really couldn't see a use for it.
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-rw-r--r--source/blender/editors/transform/transform_generics.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index 6fca49495e9..e43a3ff3635 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -381,12 +381,10 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
if (op && (prop = RNA_struct_find_property(op->ptr, "constraint_axis"))) {
bool constraint_axis[3] = {false, false, false};
- if (t->flag & T_INPUT_IS_VALUES_FINAL) {
- if (t_values_set_is_array) {
- /* For operators whose `t->values` is array, set constraint so that the
- * orientation is more intuitive in the Redo Panel. */
- constraint_axis[0] = constraint_axis[1] = constraint_axis[2] = true;
- }
+ if (t_values_set_is_array && t->flag & T_INPUT_IS_VALUES_FINAL) {
+ /* For operators whose `t->values` is array (as Move and Scale), set constraint so that the
+ * orientation is more intuitive in the Redo Panel. */
+ constraint_axis[0] = constraint_axis[1] = constraint_axis[2] = true;
}
else if (RNA_property_is_set(op->ptr, prop)) {
RNA_property_boolean_get_array(op->ptr, prop, constraint_axis);