Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-14 04:38:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-14 04:38:56 +0300
commit374c7c2a7ba029236c9cceb63218453579ba70d8 (patch)
tree30945030129c2276adf4edf4de6a1c6f7ed73b28 /animation_add_corrective_shape_key.py
parent741b7caf2267913135d1c352285ef4702f7f3fc7 (diff)
update for changes in rna api
Diffstat (limited to 'animation_add_corrective_shape_key.py')
-rw-r--r--animation_add_corrective_shape_key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index 41d34aae..4dda54bd 100644
--- a/animation_add_corrective_shape_key.py
+++ b/animation_add_corrective_shape_key.py
@@ -101,7 +101,7 @@ def extractX_2(ob, mesh):
def extractMappedX(ob, mesh):
totvert = len(mesh)
- mesh = ob.create_mesh( bpy.context.scene, True, 'PREVIEW' )
+ mesh = ob.to_mesh( bpy.context.scene, True, 'PREVIEW' )
x = []
@@ -246,7 +246,7 @@ class add_corrective_pose_shape(bpy.types.Operator):
return {'FINISHED'}
def func_object_duplicate_flatten_modifiers(ob, scene):
- mesh = ob.create_mesh( bpy.context.scene, True, 'PREVIEW' )
+ mesh = ob.to_mesh( bpy.context.scene, True, 'PREVIEW' )
name = ob.name + "_clean"
new_object = bpy.data.objects.new( name, mesh)
new_object.data = mesh