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:
authorHans Goudey <h.goudey@me.com>2019-05-15 17:56:22 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 19:10:58 +0300
commit06fe2a5e0c5d6202864701cf7fd800e4906057c9 (patch)
tree020910555116b6f002e87e52bb1f50a49e5967ef /release/scripts/startup/bl_operators/object.py
parentddae9c92326486c5c95613bc0b7bb46e2d9bc261 (diff)
Objects: new 3D cursor alignment option when adding objects
The choices are now World, View and 3D Cursor. This breaks Python API compatibility, add-ons that add objects with this parameter will need to be updated. Differential Revision: https://developer.blender.org/D4706
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-rw-r--r--release/scripts/startup/bl_operators/object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index f68b59192b8..28324891c53 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -912,7 +912,7 @@ class LoadImageAsEmpty:
'INVOKE_REGION_WIN',
type='IMAGE',
location=cursor,
- view_align=self.view_align,
+ align=('VIEW' if self.view_align else 'WORLD'),
)
obj = context.active_object