Skip to content

Commit

Permalink
fix iphone load (#9578)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBelmes committed Jan 8, 2024
1 parent fd6b113 commit 0bc3fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/engine/src/assets/classes/AssetLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import { EngineState } from '../../ecs/classes/EngineState'
import { Entity } from '../../ecs/classes/Entity'
import { SourceType } from '../../renderer/materials/components/MaterialSource'
import loadVideoTexture from '../../renderer/materials/functions/LoadVideoTexture'
import iterateObject3D from '../../scene/util/iterateObject3D'
import { DEFAULT_LOD_DISTANCES, LODS_REGEXP } from '../constants/LoaderConstants'
import { AssetClass } from '../enum/AssetClass'
import { AssetType } from '../enum/AssetType'
Expand Down Expand Up @@ -112,7 +113,7 @@ const processModelAsset = (asset: Mesh, args: LoadingArgs): void => {
const replacedMaterials = new Map()
const loddables = new Array<Object3D>()

asset.traverse((child: Mesh<any, Material>) => {
iterateObject3D(asset, (child: Mesh<any, Material>) => {
//test for LODs within this traversal
if (haveAnyLODs(child)) loddables.push(child)

Expand Down

0 comments on commit 0bc3fb6

Please sign in to comment.