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


(cherry picked from commit b438810b6b)
This commit is contained in:
Marek Roszko 2022-02-20 18:50:57 -05:00 committed by Mark Roszko
parent f8d15a641a
commit 9367b7f309
2 changed files with 2 additions and 2 deletions

View File

@ -1021,7 +1021,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