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 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/Wallfactory.py2
-rw-r--r--add_mesh_extra_objects/add_empty_as_parent.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_extra_objects/Wallfactory.py b/add_mesh_extra_objects/Wallfactory.py
index fa006774..8fb09e19 100644
--- a/add_mesh_extra_objects/Wallfactory.py
+++ b/add_mesh_extra_objects/Wallfactory.py
@@ -877,7 +877,7 @@ class add_mesh_wallb(Operator):
context.view_layer.objects.active = ob_new
ob_new.select_set(True)
- ob_new.location = tuple(context.scene.cursor_location)
+ ob_new.location = tuple(context.scene.cursor.location)
ob_new.rotation_quaternion = [1.0, 0.0, 0.0, 0.0]
return {'FINISHED'}
diff --git a/add_mesh_extra_objects/add_empty_as_parent.py b/add_mesh_extra_objects/add_empty_as_parent.py
index 56334044..da4295ff 100644
--- a/add_mesh_extra_objects/add_empty_as_parent.py
+++ b/add_mesh_extra_objects/add_empty_as_parent.py
@@ -69,7 +69,7 @@ class P2E(Operator):
pass
if self.locat == 'CURSOR':
- loc = sce.cursor_location
+ loc = sce.cursor.location
elif self.locat == 'ACTIVE':
loc = act.location
else: