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_slab.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_slab.py')
-rw-r--r-- | archipack/archipack_slab.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archipack/archipack_slab.py b/archipack/archipack_slab.py index 3c0d513c..897686da 100644 --- a/archipack/archipack_slab.py +++ b/archipack/archipack_slab.py @@ -1466,7 +1466,7 @@ class ARCHIPACK_OT_slab(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() @@ -1578,7 +1578,7 @@ class ARCHIPACK_OT_slab_from_wall(Operator): # parenting childs to wall reference point if wall.parent is None: x, y, z = wall.bound_box[0] - context.scene.cursor_location = wall.matrix_world @ Vector((x, y, z)) + context.scene.cursor.location = wall.matrix_world @ Vector((x, y, z)) # fix issue #9 context.view_layer.objects.active = wall bpy.ops.archipack.reference_point() @@ -1651,7 +1651,7 @@ class ARCHIPACK_OT_slab_cutter(ArchipackCreateTool, Operator): pd = archipack_slab.datablock(parent) pd.boundary = o.name else: - o.location = context.scene.cursor_location + o.location = context.scene.cursor.location # make manipulators selectable d.manipulable_selectable = True self.link_object_to_scene(context, o) |