handle non-lit model case

This commit is contained in:
Le Duc Anh
2026-05-20 12:05:30 +07:00
parent 30c5a7e02f
commit 50c485c1f8
@@ -299,6 +299,13 @@ public class LitModelHolder : MonoSingleton<LitModelHolder>
{
_currentIdxAsset = 0;
_maxIdxAsset = _candidatesForLoading.Count;
// double check if we really need to load and unload objects.
if (_maxIdxAsset <= 0)
{
CallBackAssetLoadingDone();
return;
}
// load the objects that are in the loading range long enough. (_candidateWaitTimeSeconds)
foreach (var kvp in _candidatesForLoading)
{