Skip to content

Commit

Permalink
Fix error with stalfos when root dir not set
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Apr 12, 2020
1 parent 902706b commit 7d79e7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Editor/Editor/Entities/Actors/st.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ public override void PreSave()

public override float GetBoundingRadius()
{
var mainModel = m_actorMeshes[0];
if (mainModel == null)
if (m_actorMeshes.Count == 0)
return base.GetBoundingRadius();

var mainModel = m_actorMeshes[0];

Vector3 lScale = Transform.LocalScale;
float largestMax = lScale[0];
for (int i = 1; i < 3; i++)
Expand Down

0 comments on commit 7d79e7b

Please sign in to comment.