diff options
Diffstat (limited to 'add_mesh_extra_objects/add_empty_as_parent.py')
-rw-r--r-- | add_mesh_extra_objects/add_empty_as_parent.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/add_mesh_extra_objects/add_empty_as_parent.py b/add_mesh_extra_objects/add_empty_as_parent.py index bcaecf64..a6ae69e6 100644 --- a/add_mesh_extra_objects/add_empty_as_parent.py +++ b/add_mesh_extra_objects/add_empty_as_parent.py @@ -78,18 +78,18 @@ class P2E(Operator): bpy.ops.object.add(type='EMPTY', location=loc) context.object.name = self.nombre context.object.show_name = True - context.object.show_x_ray = True + 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: |