Skip to content

Commit

Permalink
update for changes in blender
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed May 3, 2011
1 parent afb5e0e commit 03cd828
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions object_cloud_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -516,7 +514,7 @@ def execute(self, context):
#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()
Expand Down

0 comments on commit 03cd828

Please sign in to comment.