|
@@ -1158,7 +1158,7 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
|
|
|
|
|
|
if (this.subMeshes) {
|
|
if (this.subMeshes) {
|
|
for (var index = 0; index < this.subMeshes.length; index++) {
|
|
for (var index = 0; index < this.subMeshes.length; index++) {
|
|
- this.subMeshes[index].refreshBoundingInfo();
|
|
|
|
|
|
+ this.subMeshes[index].refreshBoundingInfo(data);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1171,6 +1171,7 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
|
|
|
|
|
|
if (data && applySkeleton && this.skeleton) {
|
|
if (data && applySkeleton && this.skeleton) {
|
|
data = Tools.Slice(data);
|
|
data = Tools.Slice(data);
|
|
|
|
+ this._generatePointsArray();
|
|
|
|
|
|
var matricesIndicesData = this.getVerticesData(VertexBuffer.MatricesIndicesKind);
|
|
var matricesIndicesData = this.getVerticesData(VertexBuffer.MatricesIndicesKind);
|
|
var matricesWeightsData = this.getVerticesData(VertexBuffer.MatricesWeightsKind);
|
|
var matricesWeightsData = this.getVerticesData(VertexBuffer.MatricesWeightsKind);
|
|
@@ -1211,6 +1212,10 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
|
|
|
|
|
|
Vector3.TransformCoordinatesFromFloatsToRef(data[index], data[index + 1], data[index + 2], finalMatrix, tempVector);
|
|
Vector3.TransformCoordinatesFromFloatsToRef(data[index], data[index + 1], data[index + 2], finalMatrix, tempVector);
|
|
tempVector.toArray(data, index);
|
|
tempVector.toArray(data, index);
|
|
|
|
+
|
|
|
|
+ if (this._positions) {
|
|
|
|
+ this._positions[index / 3].copyFrom(tempVector);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|