Skip to content
Open
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
12 changes: 12 additions & 0 deletions game/addons/tools/Code/Editor/ControlSheet/FeatureTabWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ public void RemoveFeature()
}

UpdateVisibility();

// Mark workspace as dirty when removing a feature
if ( SceneEditorSession.Active is not null )
{
SceneEditorSession.Active.HasUnsavedChanges = true;
}
}

protected override void OnContextMenu( ContextMenuEvent e )
Expand Down Expand Up @@ -354,6 +360,12 @@ public void SetFeatureEnabled()
FeatureEnabled.As.Bool = true;
UpdateVisibility();
Owner.Select( this );

// Mark workspace as dirty when adding a feature
if ( SceneEditorSession.Active is not null )
{
SceneEditorSession.Active.HasUnsavedChanges = true;
}
}

protected override void OnPaint()
Expand Down