diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-21 11:48:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-21 11:48:11 +0300 |
commit | af37c3e8f169b2f519990a24d21ea3251c79711f (patch) | |
tree | 06c98b234d3be8a22d417e7d8385604d58cb0cbb /release/scripts/modules/bpy_extras/object_utils.py | |
parent | 4dd782a1a39572a0515c076341f538a288226ded (diff) |
Cleanup: remove duplicate settings from operator_mesh_add template
Also move align items into the enum call as there is no need to have
this accessible from the class.
Diffstat (limited to 'release/scripts/modules/bpy_extras/object_utils.py')
-rw-r--r-- | release/scripts/modules/bpy_extras/object_utils.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py index 8d85c19d066..977cbc20f0d 100644 --- a/release/scripts/modules/bpy_extras/object_utils.py +++ b/release/scripts/modules/bpy_extras/object_utils.py @@ -172,14 +172,13 @@ class AddObjectHelper: if self.align == 'WORLD': self.rotation.zero() - align_items = ( - ('WORLD', "World", "Align the new object to the world"), - ('VIEW', "View", "Align the new object to the view"), - ('CURSOR', "3D Cursor", "Use the 3D cursor orientation for the new object") - ) align: EnumProperty( name="Align", - items=align_items, + items=( + ('WORLD', "World", "Align the new object to the world"), + ('VIEW', "View", "Align the new object to the view"), + ('CURSOR', "3D Cursor", "Use the 3D cursor orientation for the new object"), + ), default='WORLD', update=align_update_callback, ) |