From 1860441ee7cd4ec75c99cc372fccec839c525f46 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 28 Nov 2018 17:51:13 +0100 Subject: Use collection and instance terminology in Python API This follows naming convention agreed on in T56648. --- add_mesh_extra_objects/add_empty_as_parent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'add_mesh_extra_objects/add_empty_as_parent.py') diff --git a/add_mesh_extra_objects/add_empty_as_parent.py b/add_mesh_extra_objects/add_empty_as_parent.py index 32d0d167..a6ae69e6 100644 --- a/add_mesh_extra_objects/add_empty_as_parent.py +++ b/add_mesh_extra_objects/add_empty_as_parent.py @@ -81,15 +81,15 @@ class P2E(Operator): context.object.show_in_front = True if self.grupo: - bpy.ops.group.create(name=self.nombre) - bpy.ops.group.objects_add_active() + bpy.ops.collection.create(name=self.nombre) + bpy.ops.collection.objects_add_active() for o in objs: o.select = True if not o.parent: bpy.ops.object.parent_set(type='OBJECT') if self.grupo: - bpy.ops.group.objects_add_active() + bpy.ops.collection.objects_add_active() o.select = False for o in objs: if self.renom: -- cgit v1.2.3