Add default Deformable material for splines

This commit is contained in:
Wojtek Figat
2021-02-10 11:37:34 +01:00
parent 81e41d51c8
commit 5cb2322270
7 changed files with 23 additions and 4 deletions

View File

@@ -408,7 +408,7 @@ void SplineModel::Draw(RenderContext& renderContext)
else if (slot.Material && slot.Material->IsLoaded())
material = slot.Material;
else
material = nullptr;
material = GPUDevice::Instance->GetDefaultDeformableMaterial();
if (!material || !material->IsDeformable())
continue;