|
@@ -1757,9 +1757,7 @@ export class Scene extends AbstractScene implements IAnimatable {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- let hardwareInstancedRendering = (
|
|
|
|
- (mesh.getClassName() === "InstancedMesh" || mesh.getClassName() === "InstancedLinesMesh") && (<Mesh>mesh).instances.length > 0 || mesh.hasThinInstances
|
|
|
|
- ) && engine.getCaps().instancedArrays;
|
|
|
|
|
|
+ let hardwareInstancedRendering = mesh.hasThinInstances || mesh.getClassName() === "InstancedMesh" || mesh.getClassName() === "InstancedLinesMesh" || engine.getCaps().instancedArrays && (<Mesh>mesh).instances.length > 0;
|
|
// Is Ready For Mesh
|
|
// Is Ready For Mesh
|
|
for (let step of this._isReadyForMeshStage) {
|
|
for (let step of this._isReadyForMeshStage) {
|
|
if (!step.action(mesh, hardwareInstancedRendering)) {
|
|
if (!step.action(mesh, hardwareInstancedRendering)) {
|