@@ -633,6 +633,14 @@ def _generate_outline(offset: float = 0, pad_offset: float = 0) -> List[Vertex]:
633633 )
634634 )
635635
636+ # For the horizontal footprints, it is desired that the origin is
637+ # not in the package center, but equal to the vertical footprint.
638+ # However, due to a bug in LibrePCB, this approval doesn't work yet.
639+ # Enable this after the CI runs with a fixed LibrePCB version.
640+ # package.add_approval(
641+ # f'(approved origin_not_in_center\n (footprint {footprint.uuid})\n)'
642+ # )
643+
636644 # Add footprints
637645 _add_vertical_footprint (
638646 package ,
@@ -677,6 +685,9 @@ def _generate_outline(offset: float = 0, pad_offset: float = 0) -> List[Vertex]:
677685 body_offset = 7.62 ,
678686 )
679687
688+ package .add_approval ('(approved ambiguous_footprint_tags)' )
689+ package .add_approval ('(approved origin_not_in_center)' )
690+
680691 package .serialize (path .join ('out' , library , category ))
681692
682693
@@ -830,6 +841,9 @@ def _uuid(identifier: str) -> str:
830841 )
831842 )
832843
844+ # Approve "no parts" warning because it's a generic device
845+ device .add_approval ('(approved no_parts)' )
846+
833847 device .serialize (path .join ('out' , library , category ))
834848
835849
@@ -876,7 +890,7 @@ def _uuid(identifier: str) -> str:
876890 configs = configs ,
877891 pkgcat = '9c36c4be-3582-4f27-ae00-4c1229f1e870' ,
878892 keywords = 'led,tht' ,
879- version = '0.2' ,
893+ version = '0.2.1 ' ,
880894 create_date = '2022-02-26T00:06:03Z' ,
881895 generate_3d_models = generate_3d_models ,
882896 )
@@ -886,7 +900,7 @@ def _uuid(identifier: str) -> str:
886900 configs = configs ,
887901 cmpcat = '70421345-ae1d-4fed-aa60-e7619524b97f' ,
888902 keywords = 'led,tht' ,
889- version = '0.1.1 ' ,
903+ version = '0.1.2 ' ,
890904 create_date = '2022-08-31T11:18:33Z' ,
891905 )
892906
0 commit comments