diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 04:49:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-01 04:51:10 +0300 |
commit | 9999dada60a64eb27b37c4d711f4c3979888253e (patch) | |
tree | b325eb58ec754c883683696683933fc9d368eb0d /archipack/archipack_wall2.py | |
parent | dd0dffef42ae64d1bf16e879e3f1470ce3bf5cad (diff) |
Update for API change: scene.cursor_location -> scene.cursor.location
Note that some scripts still used the 3D view cursor which has been
removed for a while.
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() |