This commit is contained in:
Doprez 2024-06-29 12:37:24 -06:00
Родитель 10babd2291
Коммит 3f675e79e5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -250,7 +250,7 @@ namespace Stride.Physics
{
byte[] output;
var bufRef = AttachedReferenceManager.GetAttachedReference(buffer);
if (bufRef.Data != null && (output = ((BufferData)bufRef.Data).Content) != null)
if (bufRef?.Data != null && (output = ((BufferData)bufRef.Data).Content) != null)
return output;
// Editor-specific workaround, we can't load assets when the file provider is null,