Allow connections between sheet (pins) and symbols.
Fixes https://gitlab.com/kicad/code/kicad/issues/8305
This commit is contained in:
parent
12f985f978
commit
2a856890e6
|
@ -354,9 +354,10 @@ public:
|
|||
|
||||
bool CanConnect( const SCH_ITEM* aItem ) const override
|
||||
{
|
||||
return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE ) ||
|
||||
( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_BUS ) ||
|
||||
( aItem->Type() == SCH_NO_CONNECT_T );
|
||||
return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE )
|
||||
|| ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_BUS )
|
||||
|| ( aItem->Type() == SCH_NO_CONNECT_T )
|
||||
|| ( aItem->Type() == SCH_COMPONENT_T );
|
||||
}
|
||||
|
||||
std::vector<wxPoint> GetConnectionPoints() const override;
|
||||
|
|
|
@ -594,10 +594,6 @@ void SCH_MOVE_TOOL::getConnectedDragItems( SCH_ITEM* aOriginalItem, wxPoint aPoi
|
|||
}
|
||||
|
||||
case SCH_SHEET_T:
|
||||
// Dragging a sheet just because it's connected to something else feels a bit like
|
||||
// the tail wagging the dog, but this could be moved down to the next case.
|
||||
break;
|
||||
|
||||
case SCH_COMPONENT_T:
|
||||
case SCH_JUNCTION_T:
|
||||
if( test->IsConnected( aPoint ) )
|
||||
|
|
Loading…
Reference in New Issue