diff --git a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp index 6e1970ad0c..e53b0b4ad7 100644 --- a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp +++ b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp @@ -626,7 +626,7 @@ void BOARD_ADAPTER::addShape( const PCB_SHAPE* aShape, CONTAINER_2D_BASE* aConta if( inner_radius3DU < 0 ) inner_radius3DU = 0.0; - if( outer_radius3DU == 0.0 ) + if( outer_radius3DU <= inner_radius3DU ) { // Don't attempt to render degenerate shapes }