Add check for entries count.
This commit is contained in:
@@ -303,7 +303,8 @@ void Camera::GetMatrices(Matrix& view, Matrix& projection, const Viewport& viewp
|
||||
void Camera::OnPreviewModelLoaded()
|
||||
{
|
||||
_previewModelBuffer.Setup(_previewModel.Get());
|
||||
_previewModelBuffer.At(0).ReceiveDecals = false;
|
||||
if (_previewModelBuffer.Count() > 0)
|
||||
_previewModelBuffer.At(0).ReceiveDecals = false;
|
||||
|
||||
UpdateCache();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user