Fix double parsing solids from step models resulting in triangle z-fighting

Fix https://gitlab.com/kicad/code/kicad/-/issues/9416
Fix https://gitlab.com/kicad/code/kicad/-/issues/9835
Fix https://gitlab.com/kicad/code/kicad/-/issues/10554
This commit is contained in:
Marek Roszko 2022-02-20 18:50:57 -05:00
parent aa2c8e9b0c
commit b438810b6b
2 changed files with 2 additions and 2 deletions

View File

@ -1020,7 +1020,7 @@ bool processLabel( const TDF_Label& aLabel, DATA& aData, SGNODE* aParent,
if( nullptr != aItems )
aItems->push_back( pptr );
if( shapeLabel.HasChild() )
if( stype != TopAbs_SOLID && shapeLabel.HasChild() )
{
wxLogTrace( MASK_OCE, wxT( "Label %s has children" ), labelTag );
TDF_ChildIterator it;

View File

@ -37,7 +37,7 @@ SCENEGRAPH* LoadModel( char const* filename );
#define PLUGIN_OCE_MAJOR 1
#define PLUGIN_OCE_MINOR 3
#define PLUGIN_OCE_PATCH 0
#define PLUGIN_OCE_PATCH 1
#define PLUGIN_OCE_REVNO 0