Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'archipack/archipack_floor.py')
-rw-r--r--archipack/archipack_floor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archipack/archipack_floor.py b/archipack/archipack_floor.py
index 5a5bc66f..23a10b32 100644
--- a/archipack/archipack_floor.py
+++ b/archipack/archipack_floor.py
@@ -1830,7 +1830,7 @@ class ARCHIPACK_OT_floor(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
# activate manipulators at creation time
o.select_set(state=True)
context.view_layer.objects.active = o
@@ -1978,7 +1978,7 @@ class ARCHIPACK_OT_floor_cutter(ArchipackCreateTool, Operator):
pd = archipack_floor.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)