Block user-initiated zone-fill actions, but not system ones.

Fixes https://gitlab.com/kicad/code/kicad/issues/13536
This commit is contained in:
Jeff Young 2023-01-15 18:09:20 +00:00
parent 355e817302
commit 91c5bb9175
1 changed files with 5 additions and 2 deletions

View File

@ -424,9 +424,12 @@ void ZONE_FILLER_TOOL::refresh()
bool ZONE_FILLER_TOOL::IsZoneFillAction( const TOOL_EVENT* aEvent ) bool ZONE_FILLER_TOOL::IsZoneFillAction( const TOOL_EVENT* aEvent )
{ {
return aEvent->IsAction( &PCB_ACTIONS::zoneFillAll ) return aEvent->IsAction( &PCB_ACTIONS::zoneFill )
|| aEvent->IsAction( &PCB_ACTIONS::zoneFillDirty ) || aEvent->IsAction( &PCB_ACTIONS::zoneFillAll )
|| aEvent->IsAction( &PCB_ACTIONS::zoneUnfill )
|| aEvent->IsAction( &PCB_ACTIONS::zoneUnfillAll ); || aEvent->IsAction( &PCB_ACTIONS::zoneUnfillAll );
// Don't include zoneFillDirty; that's a system action not a user action
} }