Collada export: changes to joints/weights in skincontroller
authorJuha Mäki-Kanto <ih5235252@gmail.com>
Sat, 18 Feb 2012 16:20:24 +0000 (16:20 +0000)
committerJuha Mäki-Kanto <ih5235252@gmail.com>
Sat, 18 Feb 2012 16:20:24 +0000 (16:20 +0000)
commit7beddb750610982ebccfd64d87759baa91e011a5
treeb0b810a6095f18796c1b3eeaa644a87efbf2af13
parente6b708b36bb77ff2287439f20fc79097c275c822
Collada export: changes to joints/weights in skincontroller

- Collecting joints/weights in one place, it's easier to exclude zero weights or vertexgroups with no matching bone than trying to match same logic in multiple places.
- Still not exporting -1 joints for vertices without weights, but also not outputting -1 joint + weight for each vertexgroup without a matching bone.
- The exported weights are now normalized.

Last I tested this patch stopped 3ds Max crashing on import of file from #29465 (opencollada / internal .dae).
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureExporter.h