Merge branch 'camera-decals' of https://github.com/Tryibion/FlaxEngine into Tryibion-camera-decals

This commit is contained in:
Wojtek Figat
2024-09-09 06:15:19 +02:00

View File

@@ -303,6 +303,8 @@ void Camera::GetMatrices(Matrix& view, Matrix& projection, const Viewport& viewp
void Camera::OnPreviewModelLoaded()
{
_previewModelBuffer.Setup(_previewModel.Get());
if (_previewModelBuffer.Count() > 0)
_previewModelBuffer.At(0).ReceiveDecals = false;
UpdateCache();
}