From 0fa5870cd2668928ea8b2d667605f05f040185a2 Mon Sep 17 00:00:00 2001 From: "N. D" Date: Sat, 22 Oct 2016 19:59:57 +0300 Subject: [PATCH] Adding some weight if the vertex has none --- io_scene_dae/export_dae.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/io_scene_dae/export_dae.py b/io_scene_dae/export_dae.py index f5662cf..b9d58a3 100644 --- a/io_scene_dae/export_dae.py +++ b/io_scene_dae/export_dae.py @@ -615,12 +615,13 @@ def export_mesh(self, node, armature=None, skeyindex=-1, skel_source=None, name = node.vertex_groups[vg.group].name if (name in si["bone_index"]): - # TODO: Try using 0.0001 since Blender uses - # zero weight - if (vg.weight > 0.001): - v.bones.append(si["bone_index"][name]) - v.weights.append(vg.weight) - wsum += vg.weight + # Using 0.001 since Blender uses zero weight + if (vg.weight < 0.001): + vg.weight = 0.001 + + v.bones.append(si["bone_index"][name]) + v.weights.append(vg.weight) + wsum += vg.weight if (wsum == 0.0): if not self.wrongvtx_report: self.operator.report(