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:

committed by
Brecht Van Lommel

parent
ddae9c9232
commit
06fe2a5e0c
@@ -582,7 +582,7 @@ cube_shell_face = (
|
||||
|
||||
|
||||
def make_cube(scene):
|
||||
bpy.ops.mesh.primitive_cube_add(view_align=False,
|
||||
bpy.ops.mesh.primitive_cube_add(align='WORLD',
|
||||
enter_editmode=False,
|
||||
location=(0, 0, 0),
|
||||
rotation=(0, 0, 0),
|
||||
@@ -652,7 +652,7 @@ def make_cube_shell_extra(scene):
|
||||
|
||||
|
||||
def make_monkey(scene):
|
||||
bpy.ops.mesh.primitive_monkey_add(view_align=False,
|
||||
bpy.ops.mesh.primitive_monkey_add(align='WORLD',
|
||||
enter_editmode=False,
|
||||
location=(0, 0, 0),
|
||||
rotation=(0, 0, 0),
|
||||
|
Reference in New Issue
Block a user