We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e7ce9 commit 932dd63Copy full SHA for 932dd63
packages/dev/core/src/assetContainer.ts
@@ -434,10 +434,7 @@ export class AssetContainer extends AbstractScene {
434
} else {
435
// Mesh or TransformNode
436
let canInstance = true;
437
- if (
438
- node.getClassName() === "TransformNode" ||
439
- (node as Mesh).skeleton ||
440
- (node as Mesh).getTotalVertices() === 0) {
+ if (node.getClassName() === "TransformNode" || (node as Mesh).skeleton || (node as Mesh).getTotalVertices() === 0) {
441
// Transform nodes, skinned meshes, and meshes with no vertices can never be instanced!
442
canInstance = false;
443
} else if (localOptions.doNotInstantiate) {
0 commit comments