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 --- io_export_pc2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io_export_pc2.py') diff --git a/io_export_pc2.py b/io_export_pc2.py index a739def8..cb9cb4ae 100644 --- a/io_export_pc2.py +++ b/io_export_pc2.py @@ -60,7 +60,7 @@ def do_export(context, props, filepath): end = props.range_end sampling = float(props.sampling) apply_modifiers = props.apply_modifiers - me = ob.create_mesh(sc, apply_modifiers, 'PREVIEW') + me = ob.to_mesh(sc, apply_modifiers, 'PREVIEW') vertCount = len(me.vertices) sampletimes = getSampling(start, end, sampling) sampleCount = len(sampletimes) @@ -75,7 +75,7 @@ def do_export(context, props, filepath): for frame in sampletimes: sc.frame_set(frame) - me = ob.create_mesh(sc, apply_modifiers, 'PREVIEW') + me = ob.to_mesh(sc, apply_modifiers, 'PREVIEW') if len(me.vertices) != vertCount: file.close() -- cgit v1.2.3