Add support for Deformable material preview

This commit is contained in:
Wojtek Figat
2021-02-09 16:46:10 +01:00
parent 15c4b7df54
commit d4f959b681
2 changed files with 27 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ void SplineModel::OnModelLoaded()
void SplineModel::OnSplineUpdated()
{
// Skip updates when actor is disabled or something is missing
if (!_spline || !Model || !Model->IsLoaded() || !IsActiveInHierarchy() || !IsDuringPlay() || _spline->GetSplinePointsCount() < 2)
if (!_spline || !Model || !Model->IsLoaded() || !IsActiveInHierarchy() || _spline->GetSplinePointsCount() < 2)
{
_box = BoundingBox(_transform.Translation, _transform.Translation);
BoundingSphere::FromBox(_box, _sphere);