7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 19:39:17 +00:00

EasyEDA Pro import: set 3D model rotation for other axes as well.

(cherry picked from commit fbad7ae602)
This commit is contained in:
Alex Shvartzkop 2025-01-28 01:24:49 +03:00
parent 00e4d72d4b
commit 6e54b88fe0

View File

@ -237,8 +237,9 @@ void PCB_IO_EASYEDAPRO_PARSER::fillFootprintModelInfo( FOOTPRINT* footprint, con
footprint->AddField( field );
}
// TODO: other axes
kmodelRotation.z = -Convert( arr[3] );
kmodelRotation.x = -Convert( arr[4] );
kmodelRotation.y = -Convert( arr[5] );
kmodelOffset.x = pcbIUScale.IUTomm( ScaleSize( Convert( arr[6] ) ) );
kmodelOffset.y = pcbIUScale.IUTomm( ScaleSize( Convert( arr[7] ) ) );