[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1889] trunk/py/scripts/addons/ object_cloud_gen.py: update for changes in blender
Campbell Barton
ideasman42 at gmail.com
Tue May 3 09:48:47 CEST 2011
Revision: 1889
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1889
Author: campbellbarton
Date: 2011-05-03 07:48:46 +0000 (Tue, 03 May 2011)
Log Message:
-----------
update for changes in blender
Modified Paths:
--------------
trunk/py/scripts/addons/object_cloud_gen.py
Modified: trunk/py/scripts/addons/object_cloud_gen.py
===================================================================
--- trunk/py/scripts/addons/object_cloud_gen.py 2011-05-03 06:02:17 UTC (rev 1888)
+++ trunk/py/scripts/addons/object_cloud_gen.py 2011-05-03 07:48:46 UTC (rev 1889)
@@ -173,9 +173,7 @@
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 @@
#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()
More information about the Bf-extensions-cvs
mailing list