|
@@ -16564,7 +16564,7 @@ var BABYLON;
|
|
|
this._activeMeshes.push(mesh);
|
|
|
this.activeCamera._activeMeshes.push(mesh);
|
|
|
mesh._activate(this._renderId);
|
|
|
- this._activeMesh(meshLOD);
|
|
|
+ this._activeMesh(mesh, meshLOD);
|
|
|
}
|
|
|
}
|
|
|
// Particle systems
|
|
@@ -16586,7 +16586,7 @@ var BABYLON;
|
|
|
}
|
|
|
this._particlesDuration.endMonitoring(false);
|
|
|
};
|
|
|
- Scene.prototype._activeMesh = function (mesh) {
|
|
|
+ Scene.prototype._activeMesh = function (sourceMesh, mesh) {
|
|
|
if (mesh.skeleton && this.skeletonsEnabled) {
|
|
|
if (this._activeSkeletons.pushNoDuplicate(mesh.skeleton)) {
|
|
|
mesh.skeleton.prepare();
|
|
@@ -16595,11 +16595,11 @@ var BABYLON;
|
|
|
this._softwareSkinnedMeshes.pushNoDuplicate(mesh);
|
|
|
}
|
|
|
}
|
|
|
- if (mesh.showBoundingBox || this.forceShowBoundingBoxes) {
|
|
|
- this._boundingBoxRenderer.renderList.push(mesh.getBoundingInfo().boundingBox);
|
|
|
+ if (sourceMesh.showBoundingBox || this.forceShowBoundingBoxes) {
|
|
|
+ this._boundingBoxRenderer.renderList.push(sourceMesh.getBoundingInfo().boundingBox);
|
|
|
}
|
|
|
- if (mesh._edgesRenderer) {
|
|
|
- this._edgesRenderers.push(mesh._edgesRenderer);
|
|
|
+ if (sourceMesh._edgesRenderer) {
|
|
|
+ this._edgesRenderers.push(sourceMesh._edgesRenderer);
|
|
|
}
|
|
|
if (mesh && mesh.subMeshes) {
|
|
|
// Submeshes Octrees
|