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_door_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_door_maker.py')
-rw-r--r-- | archimesh/achm_door_maker.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archimesh/achm_door_maker.py b/archimesh/achm_door_maker.py index 80a7a241..b7c468a7 100644 --- a/archimesh/achm_door_maker.py +++ b/archimesh/achm_door_maker.py @@ -76,7 +76,7 @@ def create_object(self, context): # we create main object and mesh mainmesh = bpy.data.meshes.new("DoorFrane") mainobject = bpy.data.objects.new("DoorFrame", mainmesh) - mainobject.location = bpy.context.scene.cursor_location + mainobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(mainobject) mainobject.DoorObjectGenerator.add() @@ -601,7 +601,7 @@ def create_door_data(self, myframe, width, openside): mymesh = bpy.data.meshes.new("Door") myobject = bpy.data.objects.new("Door", mymesh) - myobject.location = bpy.context.scene.cursor_location + myobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(myobject) mymesh.from_pydata(verts, [], faces) @@ -653,7 +653,7 @@ def create_handle(self, mydoor, pos, frame_width, openside): mymesh = bpy.data.meshes.new("Handle_" + pos) myobject = bpy.data.objects.new("Handle_" + pos, mymesh) - myobject.location = bpy.context.scene.cursor_location + myobject.location = bpy.context.scene.cursor.location bpy.context.collection.objects.link(myobject) mymesh.from_pydata(verts, [], faces) |