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
This commit is contained in:
Hans Goudey
2019-05-15 16:56:22 +02:00
committed by Brecht Van Lommel
parent ddae9c9232
commit 06fe2a5e0c
8 changed files with 99 additions and 54 deletions

View File

@@ -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