Skip to content

Commit

Permalink
formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
carolhmj committed Mar 3, 2023
1 parent 74e7ce9 commit 932dd63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/dev/core/src/assetContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,7 @@ export class AssetContainer extends AbstractScene {
} else {
// Mesh or TransformNode
let canInstance = true;
if (
node.getClassName() === "TransformNode" ||
(node as Mesh).skeleton ||
(node as Mesh).getTotalVertices() === 0) {
if (node.getClassName() === "TransformNode" || (node as Mesh).skeleton || (node as Mesh).getTotalVertices() === 0) {
// Transform nodes, skinned meshes, and meshes with no vertices can never be instanced!
canInstance = false;
} else if (localOptions.doNotInstantiate) {
Expand Down

0 comments on commit 932dd63

Please sign in to comment.