Skip to content

Commit

Permalink
fix: sdk hot reload models caching (#2095)
Browse files Browse the repository at this point in the history
Added local scene development check when using cache at gltfAsset preparation
  • Loading branch information
pravusjif authored Sep 19, 2024
1 parent 2d3836e commit 0edde11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected override void Update(float t)
private void Prepare(in Entity entity, ref GetGltfContainerAssetIntention intention)
{
// Try load from cache
if (cache.TryGet(intention.Hash, out GltfContainerAsset? asset))
if (!localSceneDevelopment && cache.TryGet(intention.Hash, out GltfContainerAsset? asset))
{
// construct the result immediately
World.Add(entity, new StreamableLoadingResult<GltfContainerAsset>(asset));
Expand Down

0 comments on commit 0edde11

Please sign in to comment.