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_roof.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_roof.py')
-rw-r--r-- | archipack/archipack_roof.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archipack/archipack_roof.py b/archipack/archipack_roof.py index 477a3ce6..4e8b9471 100644 --- a/archipack/archipack_roof.py +++ b/archipack/archipack_roof.py @@ -5049,7 +5049,7 @@ class ARCHIPACK_OT_roof(ArchipackCreateTool, Operator): if context.mode == "OBJECT": bpy.ops.object.select_all(action="DESELECT") o = self.create(context) - o.location = context.scene.cursor_location + o.location = context.scene.cursor.location o.select_set(state=True) context.view_layer.objects.active = o self.manipulate() @@ -5101,7 +5101,7 @@ class ARCHIPACK_OT_roof_cutter(ArchipackCreateTool, Operator): pd = archipack_roof.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) |