pcbnew: Fix copy-paste error from 161dc9ce7
create_vrml_shell() needed the idxSide check but create_vrml_plane only had an extra variable that wasn't used and so shouldn't be checked.
This commit is contained in:
parent
5d60fe6812
commit
c9956def36
|
@ -1700,10 +1700,8 @@ static void create_vrml_plane( IFSG_TRANSFORM& PcbOutput, VRML_COLOR_INDEX color
|
|||
{
|
||||
std::vector< double > vertices;
|
||||
std::vector< int > idxPlane;
|
||||
std::vector< int > idxSide;
|
||||
|
||||
if( !( *layer ).Get2DTriangles( vertices, idxPlane, top_z, aTopPlane ) || idxPlane.empty()
|
||||
|| idxSide.empty() )
|
||||
if( !( *layer ).Get2DTriangles( vertices, idxPlane, top_z, aTopPlane ) )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
do {
|
||||
|
@ -1717,7 +1715,7 @@ static void create_vrml_plane( IFSG_TRANSFORM& PcbOutput, VRML_COLOR_INDEX color
|
|||
return;
|
||||
}
|
||||
|
||||
if( ( idxPlane.size() % 3 ) || ( idxSide.size() % 3 ) )
|
||||
if( ( idxPlane.size() % 3 ) )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue