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_autoboolean.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_autoboolean.py')
-rw-r--r-- | archipack/archipack_autoboolean.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archipack/archipack_autoboolean.py b/archipack/archipack_autoboolean.py index 8e4df558..7d8a90a6 100644 --- a/archipack/archipack_autoboolean.py +++ b/archipack/archipack_autoboolean.py @@ -422,7 +422,7 @@ class ArchipackBoolManager(ArchipackCollectionManager): # 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() @@ -505,7 +505,7 @@ class ArchipackBoolManager(ArchipackCollectionManager): # 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() |