diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-12 15:37:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-12 15:37:10 +0300 |
commit | 234cf14fe72afd2ab3433935465a01307d2465f0 (patch) | |
tree | df71fad6aab9c917b1977b7b8fe3ed4b0c2ea145 /io_export_pc2.py | |
parent | 305781bd5d04e49249aaaa2f9ae52a2d75f97eb0 (diff) |
Fixes for tessface removal.
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r-- | io_export_pc2.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/io_export_pc2.py b/io_export_pc2.py index 2f916d3b..7384e21e 100644 --- a/io_export_pc2.py +++ b/io_export_pc2.py @@ -63,7 +63,7 @@ def do_export(context, props, filepath): end = props.range_end sampling = float(props.sampling) apply_modifiers = props.apply_modifiers - me = ob.to_mesh(context.depsgraph, apply_modifiers, calc_loop_triangles=False) + me = ob.to_mesh(context.depsgraph, apply_modifiers) vertCount = len(me.vertices) sampletimes = get_sampled_frames(start, end, sampling) sampleCount = len(sampletimes) @@ -79,8 +79,7 @@ def do_export(context, props, filepath): for frame in sampletimes: # stupid modf() gives decimal part first! sc.frame_set(int(frame[1]), subframe=frame[0]) - me = ob.to_mesh(context.depsgraph, apply_modifiers, - calc_loop_triangles=False) + me = ob.to_mesh(context.depsgraph, apply_modifiers) if len(me.vertices) != vertCount: bpy.data.meshes.remove(me, do_unlink=True) |