Skip to content

Commit 6a5d2c1

Browse files
Adding handling of InstacedMesh inside of addAllAssetsToContainer that was missing. (#16601)
AssetContainer.addAllAssetsToContainer was missing handling InstancedMeshes, so when one of those meshes existed in the node hierarchy, it was getting added to the transformNodes list instead of the meshes list.
1 parent b90290d commit 6a5d2c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/dev/core/src/assetContainer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,8 @@ export class AssetContainer extends AbstractAssetContainer {
12651265
this.geometries.push(nodeToVisit.geometry);
12661266
}
12671267
this.meshes.push(nodeToVisit);
1268+
} else if (nodeToVisit instanceof InstancedMesh) {
1269+
this.meshes.push(nodeToVisit);
12681270
} else if (nodeToVisit instanceof TransformNode) {
12691271
this.transformNodes.push(nodeToVisit);
12701272
} else if (nodeToVisit instanceof Light) {

0 commit comments

Comments
 (0)