Skip to content

Commit

Permalink
Better editor undo redo (#176)
Browse files Browse the repository at this point in the history
* BetterEditorUndoRedo : Exploratory fix for undo/redo state, doesn't work because of VesselCrewManifest side effects
See #172

* BetterEditorUndoRedo : functional, obvious issues fixed, still likely to cause side effects.

* disable BetterEditorUndoRedo by default

---------

Co-authored-by: JonnyOThan <jonnyothan@gmail.com>
  • Loading branch information
gotmachine and JonnyOThan authored Jan 29, 2024
1 parent cf703c7 commit e7a1f50
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GameData/KSPCommunityFixes/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ KSP_COMMUNITY_FIXES
// Add part actions for locking/unlocking part resources flow state.
ResourceLockActions = true

// Invert the editor undo state capturing logic so part tweaks aren't lost when undoing.
// This is disabled by default due to the high likelihood of adverse interactions with mods.
// It may be enabled in the future after wider testing.
BetterEditorUndoRedo = false
// ##########################
// Performance tweaks
// ##########################
Expand Down
1 change: 1 addition & 0 deletions KSPCommunityFixes/KSPCommunityFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
<Compile Include="Performance\PQSUpdateNoMemoryAlloc.cs" />
<Compile Include="Performance\ProgressTrackingSpeedBoost.cs" />
<Compile Include="QoL\AutostrutActions.cs" />
<Compile Include="QoL\BetterEditorUndoRedo.cs" />
<Compile Include="QoL\ToolbarShowHide.cs" />
<Compile Include="QoL\DisableNewGameIntro.cs" />
<Compile Include="QoL\NoIVA.cs" />
Expand Down
Loading

0 comments on commit e7a1f50

Please sign in to comment.