[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2062] contrib/py/scripts/addons/ wetted_mesh.py: API fixes for 2.58
Kai Schwebke
kai at schwebke.com
Sat Jun 25 06:11:43 CEST 2011
Revision: 2062
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2062
Author: freejack
Date: 2011-06-25 04:11:36 +0000 (Sat, 25 Jun 2011)
Log Message:
-----------
API fixes for 2.58
Modified Paths:
--------------
contrib/py/scripts/addons/wetted_mesh.py
Modified: contrib/py/scripts/addons/wetted_mesh.py
===================================================================
--- contrib/py/scripts/addons/wetted_mesh.py 2011-06-23 21:45:38 UTC (rev 2061)
+++ contrib/py/scripts/addons/wetted_mesh.py 2011-06-25 04:11:36 UTC (rev 2062)
@@ -19,9 +19,9 @@
bl_info = {
"name": "Add Wetted Mesh",
"author": "freejack",
- "version": (0, 2),
- "blender": (2, 5, 7),
- "api": 35853,
+ "version": (0, 2, 1),
+ "blender": (2, 5, 8),
+ "api": 37699,
"location": "View3D > Tool Shelf > Wetted Mesh Panel",
"description": "Adds separated fluid, dry and wetted mesh for selected pair.",
"warning": "",
@@ -93,9 +93,7 @@
context.scene.objects.active = fluid
bpy.ops.object.duplicate()
bpy.ops.object.convert(target='MESH', keep_original=False)
- bpy.ops.object.location_apply()
- bpy.ops.object.rotation_apply()
- bpy.ops.object.scale_apply()
+ bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
fluidCopy = context.object
# substract solid from fluidCopy
@@ -115,9 +113,7 @@
context.scene.objects.active = fluid
bpy.ops.object.duplicate()
bpy.ops.object.convert(target='MESH', keep_original=False)
- bpy.ops.object.location_apply()
- bpy.ops.object.rotation_apply()
- bpy.ops.object.scale_apply()
+ bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
fluidCopy = context.object
# make union from fluidCopy and solid
More information about the Bf-extensions-cvs
mailing list