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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-06-17 16:21:36 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-06-17 17:09:00 +0300
commit3b8a14a3c072b01c833c18781612960fc9e78cc3 (patch)
tree2c941a2bd407208073fb3dce7c8a4a227344beda /source/blender/editors/object/object_add.c
parente52d78978aee81ebb295046d2c685442cad1fe56 (diff)
Fix T65878: "Bpy.ops.object.camera_add" doesn't take the rotation
argument into account - if a rotation is given, always take it into account [which means setting alignment to ALIGN_WORLD prior] - caused by recent rB06fe2a5e0c5d Reviewers: brecht Maniphest Tasks: T65878 Differential Revision: https://developer.blender.org/D5085
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r--source/blender/editors/object/object_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 99c3d7da2a2..a7b4a18169b 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -423,6 +423,8 @@ bool ED_object_add_generic_get_opts(bContext *C,
if (RNA_struct_property_is_set(op->ptr, "rotation")) {
*is_view_aligned = false;
+ RNA_property_enum_set(op->ptr, prop, ALIGN_WORLD);
+ alignment = ALIGN_WORLD;
}
else if (alignment_set) {
*is_view_aligned = alignment == ALIGN_VIEW;