diff options
author | Hans Goudey <h.goudey@me.com> | 2019-05-15 17:56:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-15 19:10:58 +0300 |
commit | 06fe2a5e0c5d6202864701cf7fd800e4906057c9 (patch) | |
tree | 020910555116b6f002e87e52bb1f50a49e5967ef /release/scripts/startup/bl_operators | |
parent | ddae9c92326486c5c95613bc0b7bb46e2d9bc261 (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')
-rw-r--r-- | release/scripts/startup/bl_operators/add_mesh_torus.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/object.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py index a22161fc1ae..bd727ec3e83 100644 --- a/release/scripts/startup/bl_operators/add_mesh_torus.py +++ b/release/scripts/startup/bl_operators/add_mesh_torus.py @@ -202,7 +202,7 @@ class AddTorus(Operator, object_utils.AddObjectHelper): col = layout.column(align=True) col.prop(self, "generate_uvs") col.separator() - col.prop(self, "view_align") + col.prop(self, "align") col = layout.column(align=True) col.label(text="Location") 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 |