From 374c7c2a7ba029236c9cceb63218453579ba70d8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 14 Mar 2011 01:38:56 +0000 Subject: update for changes in rna api --- animation_add_corrective_shape_key.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'animation_add_corrective_shape_key.py') 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 -- cgit v1.2.3