|
@@ -806,16 +806,18 @@
|
|
|
var weight: number;
|
|
|
for (inf = 0; inf < 4; inf++) {
|
|
|
weight = matricesWeightsData[matWeightIdx + inf];
|
|
|
- if (weight <= 0) break;
|
|
|
- Matrix.FromFloat32ArrayToRefScaled(skeletonMatrices, Math.floor(matricesIndicesData[matWeightIdx + inf] * 16), weight, tempMatrix);
|
|
|
- finalMatrix.addToSelf(tempMatrix);
|
|
|
+ if (weight > 0) {
|
|
|
+ Matrix.FromFloat32ArrayToRefScaled(skeletonMatrices, Math.floor(matricesIndicesData[matWeightIdx + inf] * 16), weight, tempMatrix);
|
|
|
+ finalMatrix.addToSelf(tempMatrix);
|
|
|
+ }
|
|
|
}
|
|
|
if (needExtras) {
|
|
|
for (inf = 0; inf < 4; inf++) {
|
|
|
weight = matricesWeightsExtraData![matWeightIdx + inf];
|
|
|
- if (weight <= 0) break;
|
|
|
- Matrix.FromFloat32ArrayToRefScaled(skeletonMatrices, Math.floor(matricesIndicesExtraData![matWeightIdx + inf] * 16), weight, tempMatrix);
|
|
|
- finalMatrix.addToSelf(tempMatrix);
|
|
|
+ if (weight > 0) {
|
|
|
+ Matrix.FromFloat32ArrayToRefScaled(skeletonMatrices, Math.floor(matricesIndicesExtraData![matWeightIdx + inf] * 16), weight, tempMatrix);
|
|
|
+ finalMatrix.addToSelf(tempMatrix);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -3285,8 +3287,7 @@
|
|
|
if (weight > 0) {
|
|
|
Matrix.FromFloat32ArrayToRefScaled(skeletonMatrices, Math.floor(matricesIndicesData[matWeightIdx + inf] * 16), weight, tempMatrix);
|
|
|
finalMatrix.addToSelf(tempMatrix);
|
|
|
-
|
|
|
- } else break;
|
|
|
+ }
|
|
|
}
|
|
|
if (needExtras) {
|
|
|
for (inf = 0; inf < 4; inf++) {
|
|
@@ -3294,8 +3295,7 @@
|
|
|
if (weight > 0) {
|
|
|
Matrix.FromFloat32ArrayToRefScaled(skeletonMatrices, Math.floor(matricesIndicesExtraData![matWeightIdx + inf] * 16), weight, tempMatrix);
|
|
|
finalMatrix.addToSelf(tempMatrix);
|
|
|
-
|
|
|
- } else break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|