Adjust footprint zones while dragging footprint.
This commit is contained in:
parent
e7db43285f
commit
8b7c0cbe04
|
@ -1472,6 +1472,14 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
|
|||
previewItem->Move( offset );
|
||||
view()->AddToPreview( previewItem );
|
||||
view()->Hide( &module->Value() );
|
||||
|
||||
for( ZONE_CONTAINER* zone : module->Zones() )
|
||||
{
|
||||
previewItem = static_cast<BOARD_ITEM*>( zone->Clone() );
|
||||
previewItem->Move( offset );
|
||||
view()->AddToPreview( previewItem );
|
||||
view()->Hide( zone, true );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( evt->IsMouseUp( BUT_LEFT ) || evt->IsClick( BUT_LEFT ) )
|
||||
|
@ -1491,7 +1499,6 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
|
|||
wxBell();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if( module )
|
||||
|
@ -1502,6 +1509,9 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
|
|||
view()->Hide( &module->Reference(), false );
|
||||
view()->Hide( &module->Value(), false );
|
||||
|
||||
for( ZONE_CONTAINER* zone : module->Zones() )
|
||||
view()->Hide( zone, false );
|
||||
|
||||
view()->ClearPreview();
|
||||
view()->ShowPreview( false );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue