diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 11:48:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 11:48:46 +0400 |
commit | 03cd82803f62b72ec58f654fed03a5891092b5af (patch) | |
tree | a578f89c1769e2367c581de899b54c1a41b9cac8 /object_cloud_gen.py | |
parent | afb5e0e411e74a4406db0db69945005ba1527b90 (diff) |
update for changes in blender
Diffstat (limited to 'object_cloud_gen.py')
-rw-r--r-- | object_cloud_gen.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/object_cloud_gen.py b/object_cloud_gen.py index 149fa554..0b74e863 100644 --- a/object_cloud_gen.py +++ b/object_cloud_gen.py @@ -173,9 +173,7 @@ def applyScaleRotLoc(scene, obj): obj.select = True scene.objects.active = obj - bpy.ops.object.rotation_apply() - bpy.ops.object.location_apply() - bpy.ops.object.scale_apply() + bpy.ops.object.transform_apply(location=True, rotation=True, scale=True) def totallyDeleteObject(scene, obj): scene.objects.unlink(obj) @@ -516,7 +514,7 @@ class GenerateCloud(bpy.types.Operator): #Don't subdivide object or smooth if smoothing box not checked. if scene.cloudsmoothing: bpy.ops.mesh.subdivide(number_cuts=2, fractal=0, smoothness=1) - # bpy.ops.object.location_apply() + # bpy.ops.object.transform_apply(location=True) bpy.ops.mesh.vertices_smooth(repeat=20) bpy.ops.mesh.tris_convert_to_quads() bpy.ops.mesh.faces_shade_smooth() |