DXF import: INSERT angles are in degrees.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16656
This commit is contained in:
parent
37c185f437
commit
767ab72cdb
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||
* Copyright (C) 2019-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2019-2024 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
|
||||
|
@ -530,7 +530,7 @@ void DXF_IMPORT_PLUGIN::addInsert( const DL_InsertData& aData )
|
|||
MATRIX3x3D arbAxis = getArbitraryAxis( getExtrusion() );
|
||||
|
||||
MATRIX3x3D rot;
|
||||
rot.SetRotation( aData.angle );
|
||||
rot.SetRotation( DEG2RAD( -aData.angle ) ); // DL_InsertData angle is in degrees
|
||||
|
||||
MATRIX3x3D scale;
|
||||
scale.SetScale( VECTOR2D( aData.sx, aData.sy ) );
|
||||
|
|
Loading…
Reference in New Issue