mirror of
https://github.com/nophead/Mendel90.git
synced 2025-01-17 04:48:15 +01:00
Fixed crash when there is a part outside of any assembly
This commit is contained in:
parent
35541747b9
commit
53aaca56e1
3
bom.py
3
bom.py
@ -119,7 +119,8 @@ def boms(machine):
|
|||||||
stack.pop()
|
stack.pop()
|
||||||
else:
|
else:
|
||||||
main.add_part(s)
|
main.add_part(s)
|
||||||
main.assemblies[stack[-1]].add_part(s)
|
if stack:
|
||||||
|
main.assemblies[stack[-1]].add_part(s)
|
||||||
|
|
||||||
main.print_bom(True, open(bom_dir + "/bom.txt","wt"))
|
main.print_bom(True, open(bom_dir + "/bom.txt","wt"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user