Skip to content

Commit

Permalink
Check the entire ship in case the ship was loaded rather than built
Browse files Browse the repository at this point in the history
  • Loading branch information
dkavolis committed May 10, 2021
1 parent 791357c commit 704efd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FerramAerospaceResearch/FARPartGeometry/GeometryPartModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ private IEnumerator DoRebuildMeshEditor()
while (EditorLogic.SelectedPart == part)
yield return waiter;

// skip if not the root part, OnEditorAttach will rebuild the mesh data
if (EditorLogic.RootPart != part)
// skip if not in the ship, OnEditorAttach will rebuild the mesh data
if (!EditorLogic.SortedShipList.Contains(part))
yield break;

RebuildAllMeshData();
Expand Down

0 comments on commit 704efd5

Please sign in to comment.