Skip to content

Commit

Permalink
BugFix: Sometimes the ring visual was still visible after closing the…
Browse files Browse the repository at this point in the history
… admin menu
  • Loading branch information
8vogt committed Dec 17, 2020
1 parent 476238b commit d2cdbc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SEWorldGenPlugin/GUI/PluginAdminMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,12 @@ private void UpdateRingVisual()
PluginDrawSession.Static.AddRenderObject(m_selectedPlanet.GetHashCode(), new RenderHollowCylinder(shape.worldMatrix, (float)shape.radius + shape.width, (float)shape.radius, shape.height, Color.LightGreen.ToVector4()));
}

protected override void OnClosed()
{
PluginDrawSession.Static.RemoveRenderObject(m_selectedPlanet.GetHashCode());
base.OnClosed();
}

/// <summary>
/// Callback for button, to teleport the player to the currently selected planets ring
/// </summary>
Expand Down

0 comments on commit d2cdbc2

Please sign in to comment.