diff options
Diffstat (limited to 'archipack/archipack_wall2.py')
-rw-r--r-- | archipack/archipack_wall2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archipack/archipack_wall2.py b/archipack/archipack_wall2.py index 1eb3ff80..8e3bfb43 100644 --- a/archipack/archipack_wall2.py +++ b/archipack/archipack_wall2.py @@ -449,7 +449,7 @@ def update_t_part(self, context): if o.parent is None: # create a reference point and make it active x, y, z = w.bound_box[0] - context.scene.cursor_location = w.matrix_world @ Vector((x, y, z)) + context.scene.cursor.location = w.matrix_world @ Vector((x, y, z)) # fix issue #9 context.view_layer.objects.active = o bpy.ops.archipack.reference_point() @@ -1781,7 +1781,7 @@ class ARCHIPACK_OT_wall2(ArchipackCreateTool, Operator): if context.mode == "OBJECT": bpy.ops.object.select_all(action="DESELECT") o = self.create(context) - o.location = bpy.context.scene.cursor_location + o.location = bpy.context.scene.cursor.location o.select_set(state=True) context.view_layer.objects.active = o self.manipulate() @@ -1886,7 +1886,7 @@ class ARCHIPACK_OT_wall2_from_slab(Operator): # parenting childs to wall reference point if o.parent is None: x, y, z = o.bound_box[0] - context.scene.cursor_location = o.matrix_world @ Vector((x, y, z)) + context.scene.cursor.location = o.matrix_world @ Vector((x, y, z)) # fix issue #9 context.view_layer.objects.active = o bpy.ops.archipack.reference_point() |