Fix some minor issues with materials previews in Editor

This commit is contained in:
Wojtek Figat
2021-02-25 16:38:05 +01:00
parent 26607c1d09
commit 4d73b271b8
12 changed files with 40 additions and 11 deletions

View File

@@ -306,6 +306,7 @@ namespace FlaxEditor.Viewport.Previews
}
if (_splineModel != null)
{
_particleEffect.IsActive = deformableMaterial != null;
_splineModel.Model = _previewModel.Model;
_splineModel.SetMaterial(0, deformableMaterial);
}