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-09-14 21:33:36 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-09-14 21:55:40 +0300
commitf7829787da5c64b3fa715a042c2a45ecd4314676 (patch)
treee4d1a59bb2a1840de464a4ec84dfde3ddb271882 /source/blender/editors/include/ED_transform.h
parent273bf53e8013085eb61738fae73d026e3fb67be9 (diff)
Fix T80704: bpy.ops.transform.rotate() ignores orient_type
Remove the condition preventing orientation from being obtained out of the 3d View context. Also pass the `ob` and `obedit` arguments obtained from the caller.
Diffstat (limited to 'source/blender/editors/include/ED_transform.h')
-rw-r--r--source/blender/editors/include/ED_transform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h
index d6af119dae0..0ea86e006e0 100644
--- a/source/blender/editors/include/ED_transform.h
+++ b/source/blender/editors/include/ED_transform.h
@@ -130,6 +130,8 @@ bool BIF_createTransformOrientation(struct bContext *C,
void BIF_selectTransformOrientation(struct bContext *C, struct TransformOrientation *target);
void ED_getTransformOrientationMatrix(const struct bContext *C,
+ struct Object *ob,
+ struct Object *obedit,
const short around,
float r_orientation_mat[3][3]);