Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

## Unreleased
- Fixed SystemHeat part-action-window fields flickering when system flux changes.
- Improved performance
- Color animations no longer update all materials when they haven't changed.

Expand Down
15 changes: 4 additions & 11 deletions Source/Modules/ModuleSystemHeat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,10 @@ protected void Update()

SystemFluxUI = String.Format("{0}W", Utils.ToSI(totalSystemFlux, "F0"));
LoopTemperatureUI = String.Format("{0:F0} / {1:F0} K", currentLoopTemperature, nominalLoopTemperature);
if (totalSystemFlux > 0f)
{
Fields["SystemTemperatureUI"].guiActive = true;
Fields["SystemTemperatureUI"].guiActiveEditor = true;
SystemTemperatureUI = String.Format("{0:F0} K", totalSystemTemperature);
}
else
{
Fields["SystemTemperatureUI"].guiActive = false;
Fields["SystemTemperatureUI"].guiActiveEditor = false;
}
// Keep the PAW layout stable when flux briefly reaches zero or changes sign.
// Visibility is controlled by SetSystemHeatModuleEnabled, not by the
// instantaneous value being displayed.
SystemTemperatureUI = String.Format("{0:F0} K", totalSystemTemperature);
}

protected void FindSimulator()
Expand Down