[Fixed][Sub-PCBs] Unfilter must be applied even if no _comps

This commit is contained in:
Salvador E. Tropea 2022-12-22 13:06:16 -03:00
parent b4fa74e774
commit ed33913327
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ class VariantOptions(BaseOptions):
return True
def unfilter_pcb_components(self, board, do_3D=False, do_2D=True):
if not self._comps:
if not self._comps and not self._sub_pcb:
return
if self._sub_pcb:
# Undo the sub-PCB: just reload the PCB