Adding some weight if the vertex has none
Fixing a warning if the vertexes has 0 weight. Issue #38
Your fix is good (and it was in the TODO), but can a smaller (closer to 0) number than 0.001 be used?
I guess it should be possible. How much smaller?
<color> 0.800000011920929 0.800000011920929 0.800000011920929 1.0 </color>
This is how the color 0.8 0.8 0.8 is written into the exported files. So 7 digits after the delimiter looks fine.
Will fix it and make some tests soon.
@set-killer The smallest possible - it means zero after all. I think you could even go 0.000000000000001.
Edit: How come it's not possible for vertexes to have zero weight?
That is what i found in the documentation (page 174):
Generating default blending weights, usually with some fall-off function:
the farther a joint is from a given vertex, the less it influences it.
Also, if a weight is 0, the influence can be omitted.
That should mean vertexes with weight 0 may not be influenced by the bone. In that case i am not sure that we should artificially add weight to the vertexes.
In that case we should reconsider what #38 says. Is the "unassigned weights" error due to weights not being assigned at all or due to weights being zero (pinging @linuxfree2016)? If it's the former, I think that setting the weights to 0 is the right thing to do, according to what the documentation says.
What's the status on this PR? Should I merge as is or do you want to experiment further with zero-er weights?