API: Preserve linked symbol properties in footprints

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21655


(cherry picked from commit 949be9a63a)

Co-authored-by: Jon Evans <[email protected]>
This commit is contained in:
Jon Evans
2025-11-20 19:57:50 -05:00
parent 139d6758f7
commit a9ac108152
6 changed files with 253 additions and 51 deletions
+10
View File
@@ -242,4 +242,14 @@ KICOMMON_API void PackSheetPath( types::SheetPath& aOutput, const KIID_PATH& aIn
aOutput.add_path()->set_value( entry.AsStdString() );
}
KICOMMON_API KIID_PATH UnpackSheetPath( const types::SheetPath& aInput )
{
KIID_PATH output;
for( const types::KIID& sheet : aInput.path() )
output.push_back( KIID( sheet.value() ) );
return output;
}
} // namespace kiapi::common