diff --git a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp index 3d868cf614..9586a0ad2e 100644 --- a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp +++ b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp @@ -388,7 +388,7 @@ void CINFO3D_VISU::createNewPadWithClearance( const D_PAD* aPad, // see pcbnew/board_items_to_polygon_shape_transform.cpp wxPoint corners[4]; - aPad->BuildPadPolygon( corners, wxSize( 0, 0), aPad->GetOrientation() ); + aPad->BuildPadPolygon( corners, aClearanceValue, aPad->GetOrientation() ); SFVEC2F corners3DU[4];