[Fixed] 2D PCB processing didn't show in 3D targets

- I.e. solder paste not removed in the 3D render.

Related to #270
This commit is contained in:
Salvador E. Tropea 2022-09-13 11:32:27 -03:00
parent 87ce073e77
commit 4cbb7a3405
3 changed files with 14 additions and 2 deletions

View File

@ -29,6 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Problems to compress netlists. (#287)
- 2D PCB processing didn't show in 3D targets (i.e. solder paste not removed in
the 3D render). (See #270)
### Changed
- Diff: when comparing a file now the links says Current/FILE instead of None

View File

@ -142,10 +142,10 @@ class Base3DOptions(VariantOptions):
self.undo_3d_models_rename(GS.board)
return ret
return GS.pcb_file
self.filter_pcb_components(GS.board, do_3D=True, do_2D=False)
self.filter_pcb_components(GS.board, do_3D=True, do_2D=True)
self.download_models()
fname = self.save_tmp_board()
self.unfilter_pcb_components(GS.board, do_3D=True, do_2D=False)
self.unfilter_pcb_components(GS.board, do_3D=True, do_2D=True)
return fname
def get_targets(self, out_dir):

View File

@ -7,6 +7,8 @@ global:
# remove_adhesive_for_dnp: false
# cross_footprints_for_dnp: false
hide_excluded: true
pcb_finish: ENIG
solder_mask_color: blue
variants:
- name: 'production'
@ -48,6 +50,14 @@ outputs:
variant: test
title: 'Hello %V'
- name: '3d_default'
comment: "3D view w/variant"
type: render_3d
options:
variant: default
ray_tracing: true
#show_solderpaste: false
- name: 'diff_pcb'
comment: "PCB difference with variant"
type: diff