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:
authorFlorian Meyer <florianfelix@web.de>2011-03-18 20:36:19 +0300
committerFlorian Meyer <florianfelix@web.de>2011-03-18 20:36:19 +0300
commitd0a22bcf7ba483abe1c1cd07bab01151f78fafe4 (patch)
tree742e3098a5c769705d57a1590029e22838b0f2b9 /io_export_pc2.py
parent6fb871e106031b0fcc240e5147ae5c42752eed3b (diff)
update for changes to python 3.2
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r--io_export_pc2.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/io_export_pc2.py b/io_export_pc2.py
index cb9cb4ae..f244b285 100644
--- a/io_export_pc2.py
+++ b/io_export_pc2.py
@@ -60,14 +60,14 @@ def do_export(context, props, filepath):
end = props.range_end
sampling = float(props.sampling)
apply_modifiers = props.apply_modifiers
- me = ob.to_mesh(sc, apply_modifiers, 'PREVIEW')
+ me = ob.create_mesh(sc, apply_modifiers, 'PREVIEW')
vertCount = len(me.vertices)
sampletimes = getSampling(start, end, sampling)
sampleCount = len(sampletimes)
# Create the header
- headerFormat='<12ciiffi'
- headerStr = struct.pack(headerFormat, 'P','O','I','N','T','C','A','C','H','E','2','\0',
+ headerFormat='<12siiffi'
+ headerStr = struct.pack(headerFormat, b'POINTCACHE2\0',
1, vertCount, start, sampling, sampleCount)
file = open(filepath, "wb")
@@ -75,7 +75,7 @@ def do_export(context, props, filepath):
for frame in sampletimes:
sc.frame_set(frame)
- me = ob.to_mesh(sc, apply_modifiers, 'PREVIEW')
+ me = ob.create_mesh(sc, apply_modifiers, 'PREVIEW')
if len(me.vertices) != vertCount:
file.close()
@@ -200,4 +200,4 @@ def unregister():
#bpy.types.VIEW3D_PT_tools_objectmode.remove(menu_func)
if __name__ == "__main__":
- register()
+ register() \ No newline at end of file