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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-09 20:08:04 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-10 18:25:48 +0300
commit227fafdfcf4fb441ba1b8477331d543d2cf087af (patch)
tree26a0ac762d8985007286884992194c690696cb46 /io_export_pc2.py
parentadb4f822ca2383ec269c529d62419f3e6998bd48 (diff)
Update for removal of tessfaces.
This ports the already working addons. The disabled x3d, psk, lwo, 3ds, raw, dxf addons still need to be converted.
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r--io_export_pc2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_export_pc2.py b/io_export_pc2.py
index cc1f8d78..2f916d3b 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_tessface=False)
+ me = ob.to_mesh(context.depsgraph, apply_modifiers, calc_loop_triangles=False)
vertCount = len(me.vertices)
sampletimes = get_sampled_frames(start, end, sampling)
sampleCount = len(sampletimes)
@@ -80,7 +80,7 @@ def do_export(context, props, filepath):
# stupid modf() gives decimal part first!
sc.frame_set(int(frame[1]), subframe=frame[0])
me = ob.to_mesh(context.depsgraph, apply_modifiers,
- calc_tessface=False)
+ calc_loop_triangles=False)
if len(me.vertices) != vertCount:
bpy.data.meshes.remove(me, do_unlink=True)