Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
IR-1775-Split-dev-test-suite-into-Examples-Tests-and-Benchmarks (#10157)
Browse files Browse the repository at this point in the history
* Remove use of window

* Resource manager warning changes

* GLTFs no longer have ownership of referenced assets, fixes for GLTFComponent flow

* flag
  • Loading branch information
MichaelEstes authored May 16, 2024
1 parent e7881b5 commit 1b1b6ee
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ describe('resourceLoaderFunctions', () => {
for (const refMesh of referencedMeshes) assert(resourceState.resources[refMesh])
ResourceManager.unload(url, entity)
assert(!resourceState.resources[url])
for (const refMesh of referencedMeshes) assert(!resourceState.resources[refMesh])
done()
},
(resquest) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const updateResource = (id: string) => {
}

ResourceState.debugLog('ResourceManager:update Updating asset for id: ' + id)
ResourceManager.removeReferencedResources(resource)
for (const [_, onLoad] of Object.entries(onLoads)) {
AssetLoader.load(
id,
Expand Down
Loading

0 comments on commit 1b1b6ee

Please sign in to comment.