From f9ad0a434d5ea881c207573c7cb99acd01df2499 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 4 Mar 2024 15:00:21 +0300 Subject: [PATCH] Fix assert in BOARD_ADAPTER::createLayers. --- 3d-viewer/3d_canvas/create_layer_items.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/3d-viewer/3d_canvas/create_layer_items.cpp b/3d-viewer/3d_canvas/create_layer_items.cpp index 7bcedf2cf1..8dab395953 100644 --- a/3d-viewer/3d_canvas/create_layer_items.cpp +++ b/3d-viewer/3d_canvas/create_layer_items.cpp @@ -1151,6 +1151,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter ) if( layerPoly != m_layers_poly.end() ) { // This will make a union of all added contours + layerPoly->second->ClearArcs(); layerPoly->second->Simplify( SHAPE_POLY_SET::PM_FAST ); } }