[Bf-blender-cvs] [d0578a94eec] master: Fix regression in the orientation of transform Redo operations
Germano Cavalcante
noreply at git.blender.org
Fri Feb 21 16:20:17 CET 2020
Commit: d0578a94eeccdb68363a7b018ba017a4b6ba907f
Author: Germano Cavalcante
Date: Fri Feb 21 12:19:55 2020 -0300
Branches: master
https://developer.blender.org/rBd0578a94eeccdb68363a7b018ba017a4b6ba907f
Fix regression in the orientation of transform Redo operations
Caused by rBb3abd2e102df
===================================================================
M source/blender/editors/transform/transform_generics.c
M source/blender/editors/transform/transform_orientations.c
===================================================================
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index 05419e78c40..c925f5c9a8e 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -1633,7 +1633,6 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
(RNA_enum_get(op->ptr, "orient_type") == RNA_enum_get(op->ptr, "orient_matrix_type")))) {
RNA_property_float_get_array(op->ptr, prop, &t->orient_matrix[0][0]);
copy_m3_m3(t->spacemtx, t->orient_matrix);
- negate_m3(t->spacemtx);
/* Some transform modes use this to operate on an axis. */
t->orient_matrix_is_set = true;
t->orientation.user = V3D_ORIENT_CUSTOM_MATRIX;
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 1952a2c862e..ea4f1eedd81 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -512,11 +512,11 @@ void initTransformOrientation(bContext *C, TransInfo *t)
t->orientation.unset = V3D_ORIENT_VIEW;
copy_m3_m4(t->orient_matrix, t->viewinv);
normalize_m3(t->orient_matrix);
+ negate_m3(t->orient_matrix);
}
else {
copy_m3_m3(t->orient_matrix, t->spacemtx);
}
- negate_m3(t->orient_matrix);
}
}
More information about the Bf-blender-cvs
mailing list