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 /archimesh/achm_column_maker.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 'archimesh/achm_column_maker.py')
-rw-r--r-- | archimesh/achm_column_maker.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archimesh/achm_column_maker.py b/archimesh/achm_column_maker.py index d1680a9c..fdb30303 100644 --- a/archimesh/achm_column_maker.py +++ b/archimesh/achm_column_maker.py @@ -605,7 +605,7 @@ def create_circular_column(self, objname, radio_top, radio_mid, radio_bottom, he mesh = bpy.data.meshes.new(objname) myobject = bpy.data.objects.new(objname, mesh) - myobject.location = bpy.context.scene.cursor_location + myobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(myobject) mesh.from_pydata(myvertex, [], myfaces) @@ -677,7 +677,7 @@ def create_torus(objname, radio_inside, radio_outside, height): mesh = bpy.data.meshes.new(objname) myobject = bpy.data.objects.new(objname, mesh) - myobject.location = bpy.context.scene.cursor_location + myobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(myobject) mesh.from_pydata(myvertex, [], myfaces) @@ -726,7 +726,7 @@ def create_rectangular_base(self, objname, x, y, z, ramp=False): mesh = bpy.data.meshes.new(objname) myobject = bpy.data.objects.new(objname, mesh) - myobject.location = bpy.context.scene.cursor_location + myobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(myobject) mesh.from_pydata(myvertex, [], myfaces) @@ -792,7 +792,7 @@ def create_arc(objname, radio, gap, thickness, center): mesh = bpy.data.meshes.new(objname) myobject = bpy.data.objects.new(objname, mesh) - myobject.location = bpy.context.scene.cursor_location + myobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(myobject) mesh.from_pydata(myvertex, [], myfaces) |