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_venetian_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_venetian_maker.py')
-rw-r--r-- | archimesh/achm_venetian_maker.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archimesh/achm_venetian_maker.py b/archimesh/achm_venetian_maker.py index dbf76970..5ef9a9bc 100644 --- a/archimesh/achm_venetian_maker.py +++ b/archimesh/achm_venetian_maker.py @@ -76,7 +76,7 @@ def create_object(self, context): # we create main object and mesh mainmesh = bpy.data.meshes.new("VenetianFrane") mainobject = bpy.data.objects.new("VenetianFrame", mainmesh) - mainobject.location = bpy.context.scene.cursor_location + mainobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(mainobject) mainobject.VenetianObjectGenerator.add() @@ -517,7 +517,7 @@ def create_slat_mesh(objname, width, depth, height, angle, ratio): 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) @@ -643,7 +643,7 @@ def create_venetian_base(objname, x, y, z): 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) @@ -808,7 +808,7 @@ def get_venetian_stick(objname, 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) @@ -1374,7 +1374,7 @@ def get_venetian_strings(objname, 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) |