Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'add_mesh_extra_objects/add_empty_as_parent.py')
-rw-r--r--add_mesh_extra_objects/add_empty_as_parent.py8
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: