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:
authorCampbell Barton <ideasman42@gmail.com>2019-03-01 04:49:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-01 04:51:10 +0300
commit9999dada60a64eb27b37c4d711f4c3979888253e (patch)
treeb325eb58ec754c883683696683933fc9d368eb0d /archimesh/achm_window_panel.py
parentdd0dffef42ae64d1bf16e879e3f1470ce3bf5cad (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 'archimesh/achm_window_panel.py')
-rw-r--r--archimesh/achm_window_panel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archimesh/achm_window_panel.py b/archimesh/achm_window_panel.py
index faf18385..30429070 100644
--- a/archimesh/achm_window_panel.py
+++ b/archimesh/achm_window_panel.py
@@ -239,7 +239,7 @@ def create_window():
# Link object to scene
bpy.context.collection.objects.link(window_object)
window_object.WindowPanelGenerator.add()
- window_object.location = bpy.context.scene.cursor_location
+ window_object.location = bpy.context.scene.cursor.location
# Shape the mesh.
do_mesh(window_object, window_mesh)
@@ -1540,7 +1540,7 @@ def create_ctrl_box(parentobj, objname):
mymesh = bpy.data.meshes.new(objname)
myobj = bpy.data.objects.new(objname, mymesh)
- myobj.location = bpy.context.scene.cursor_location
+ myobj.location = bpy.context.scene.cursor.location
bpy.context.collection.objects.link(myobj)
mymesh.from_pydata(myvertex, [], myfaces)