Fix spline model visibility after enable if was disabled on start

This commit is contained in:
Wojtek Figat
2021-06-08 14:13:26 +02:00
parent cfac2db5d2
commit e0b5558399
2 changed files with 9 additions and 0 deletions

View File

@@ -480,3 +480,11 @@ void SplineModel::OnTransformChanged()
OnSplineUpdated();
}
void SplineModel::OnActiveInTreeChanged()
{
// Base
ModelInstanceActor::OnActiveInTreeChanged();
OnSplineUpdated();
}

View File

@@ -125,4 +125,5 @@ protected:
// [ModelInstanceActor]
void OnTransformChanged() override;
void OnActiveInTreeChanged() override;
};