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 /add_curve_extra_objects/add_surface_plane_cone.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 'add_curve_extra_objects/add_surface_plane_cone.py')
-rw-r--r-- | add_curve_extra_objects/add_surface_plane_cone.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/add_curve_extra_objects/add_surface_plane_cone.py b/add_curve_extra_objects/add_surface_plane_cone.py index 94889f5b..2cd148d6 100644 --- a/add_curve_extra_objects/add_surface_plane_cone.py +++ b/add_curve_extra_objects/add_surface_plane_cone.py @@ -123,7 +123,7 @@ class MakeSurfaceWedge(Operator, MakeSurfaceHelpers): # change name context.active_object.name = 'SurfaceWedge' # get the wedge to the 3d cursor. - context.active_object.location = context.scene.cursor_location + context.active_object.location = context.scene.cursor.location bpy.ops.transform.resize(value=(size, size, size)) # adjust resolution in u and v direction @@ -186,7 +186,7 @@ class MakeSurfaceCone(Operator, MakeSurfaceHelpers): bpy.ops.object.editmode_toggle() # bring object to cursor bpy.ops.object.mode_set(mode='OBJECT') - context.active_object.location = context.scene.cursor_location + context.active_object.location = context.scene.cursor.location # adjust size bpy.ops.transform.resize(value=(size, size, size)) @@ -266,7 +266,7 @@ class MakeSurfaceStar(Operator, MakeSurfaceHelpers): # origin to geometry bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN') # get object to 3d cursor - context.active_object.location = context.scene.cursor_location + context.active_object.location = context.scene.cursor.location # change name ao.name = 'SurfaceStar' # adjust size @@ -334,7 +334,7 @@ class MakeSurfacePlane(Operator, MakeSurfaceHelpers): # bring object to 3d cursor bpy.ops.object.mode_set(mode='OBJECT') - context.active_object.location = context.scene.cursor_location + context.active_object.location = context.scene.cursor.location bpy.ops.transform.resize(value=(size, size, size)) # adjust resolution in u and v direction |