handle non-lit model case
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user