diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-28 19:51:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-28 20:23:31 +0300 |
commit | 1860441ee7cd4ec75c99cc372fccec839c525f46 (patch) | |
tree | fe8ef38166fce2ff001b2b92dcc77458526e4ebc /space_view3d_spacebar_menu.py | |
parent | fef2540b25775c3e1e4012bec35ddb8695daa209 (diff) |
Use collection and instance terminology in Python API
This follows naming convention agreed on in T56648.
Diffstat (limited to 'space_view3d_spacebar_menu.py')
-rw-r--r-- | space_view3d_spacebar_menu.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py index 463a92eb..c6a8c93f 100644 --- a/space_view3d_spacebar_menu.py +++ b/space_view3d_spacebar_menu.py @@ -850,18 +850,18 @@ class VIEW3D_MT_AddMenu(Menu): layout.menu("VIEW3D_MT_object_quick_effects", text="Quick Effects", icon='PARTICLES') UseSeparator(self, context) - has_groups = (len(bpy.data.groups) > 0) + has_groups = (len(bpy.data.collections) > 0) col_group = layout.column() col_group.enabled = has_groups - if not has_groups or len(bpy.data.groups) > 10: + if not has_groups or len(bpy.data.collections) > 10: col_group.operator_context = 'INVOKE_REGION_WIN' - col_group.operator("object.group_instance_add", - text="Group Instance..." if has_groups else "No Groups in Data", + col_group.operator("object.collection_instance_add", + text="Collection Instance..." if has_groups else "No Groups in Data", icon='GROUP_VERTEX') else: - col_group.operator_menu_enum("object.group_instance_add", "group", - text="Group Instance", icon='GROUP_VERTEX') + col_group.operator_menu_enum("object.collection_instance_add", "collection", + text="Collection Instance", icon='GROUP_VERTEX') # ********** Object Manipulator ********** @@ -1178,12 +1178,12 @@ class VIEW3D_MT_GroupMenu(Menu): def draw(self, context): layout = self.layout - layout.operator("group.create") - layout.operator("group.objects_add_active") + layout.operator("collection.create") + layout.operator("collection.objects_add_active") UseSeparator(self, context) - layout.operator("group.objects_remove") - layout.operator("group.objects_remove_all") - layout.operator("group.objects_remove_active") + layout.operator("collection.objects_remove") + layout.operator("collection.objects_remove_all") + layout.operator("collection.objects_remove_active") # ********** Object Camera Options ********** |