fix: negative hard joint handling... correctly this time

This commit is contained in:
TrèsAbhi committed 2024-01-12 20:20:51 -06:00
1 parent 062e6e9626
commit 0582339332
4 files changed
+30 -20

No files matched your search

+1 -4
View File
@@ -58,10 +58,7 @@ export async function extractArmor(data: string, fileName: string) {
attributes.get(attribute)!.push(value);
if (
attribute === VertexAttribute.HARD_JOINTINDEX &&
value[0] !== -1
) {
if (attribute === VertexAttribute.HARD_JOINTINDEX) {
hardJointIndices.add(value[0]);
vertexHardJointIndices.set(index, value[0]);
}