Add waiting for model to be loaded in SetMaterial

This commit is contained in:
Wojtek Figat
2022-07-23 15:33:04 +02:00
parent 0a1d8f6b3b
commit 8d6fa34108
6 changed files with 25 additions and 0 deletions

View File

@@ -544,3 +544,9 @@ void StaticModel::OnDisable()
_residencyChangedModel = nullptr;
}
}
void StaticModel::WaitForModelLoad()
{
if (Model)
Model->WaitForLoaded();
}