Block user-initiated zone-fill actions, but not system ones.
Fixes https://gitlab.com/kicad/code/kicad/issues/13536
This commit is contained in:
parent
355e817302
commit
91c5bb9175
|
@ -424,9 +424,12 @@ void ZONE_FILLER_TOOL::refresh()
|
|||
|
||||
bool ZONE_FILLER_TOOL::IsZoneFillAction( const TOOL_EVENT* aEvent )
|
||||
{
|
||||
return aEvent->IsAction( &PCB_ACTIONS::zoneFillAll )
|
||||
|| aEvent->IsAction( &PCB_ACTIONS::zoneFillDirty )
|
||||
return aEvent->IsAction( &PCB_ACTIONS::zoneFill )
|
||||
|| aEvent->IsAction( &PCB_ACTIONS::zoneFillAll )
|
||||
|| aEvent->IsAction( &PCB_ACTIONS::zoneUnfill )
|
||||
|| aEvent->IsAction( &PCB_ACTIONS::zoneUnfillAll );
|
||||
|
||||
// Don't include zoneFillDirty; that's a system action not a user action
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue