Avoid loading duplicate shapes due to hierarchy structure
Fix https://gitlab.com/kicad/code/kicad/-/issues/9416 Fix https://gitlab.com/kicad/code/kicad/-/issues/6107
This commit is contained in:
parent
16a266301a
commit
2de4906d65
|
@ -1020,7 +1020,7 @@ bool processLabel( const TDF_Label& aLabel, DATA& aData, SGNODE* aParent,
|
|||
if( nullptr != aItems )
|
||||
aItems->push_back( pptr );
|
||||
|
||||
if( stype != TopAbs_SOLID && shapeLabel.HasChild() )
|
||||
if( !aData.m_assy->IsSimpleShape( shapeLabel ) && shapeLabel.HasChild() )
|
||||
{
|
||||
wxLogTrace( MASK_OCE, wxT( "Label %s has children" ), labelTag );
|
||||
TDF_ChildIterator it;
|
||||
|
|
Loading…
Reference in New Issue