3D OCE plugin: make two-sided faces for non-solid shapes (shells).

Fixes single-face shells display in the 3D viewer.
This commit is contained in:
Alex Shvartzkop 2023-11-22 18:53:59 +03:00
parent 85f760fc66
commit e9c5b4755b
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2016 Cirilo Bernardo <cirilo.bernardo@gmail.com>
* Copyright (C) 2020-2021 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -804,11 +804,12 @@ bool processSolidOrShell( const TopoDS_Shape& shape, DATA& data, SGNODE* parent,
std::vector< SGNODE* >* items )
{
TDF_Label label;
data.hasSolid = true;
std::string partID;
Quantity_ColorRGBA col;
Quantity_ColorRGBA* lcolor = nullptr;
data.hasSolid = shape.ShapeType() == TopAbs_SOLID;
wxLogTrace( MASK_OCE, wxT( "Processing solid" ) );
// Search the whole model first to make sure something exists (may or may not have color)