From d51791f19768b2e829d28a0e87fb20c42db037cf Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 14 Sep 2022 10:58:05 -0300 Subject: [PATCH] Added a warning whe we download 3D models --- kibot/misc.py | 1 + kibot/out_base_3d.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kibot/misc.py b/kibot/misc.py index abee8521..1b832197 100644 --- a/kibot/misc.py +++ b/kibot/misc.py @@ -227,6 +227,7 @@ W_NOPREFLIGHTS = '(W094) ' W_NOPART = '(W095) ' W_MAXDEPTH = '(W096) ' W_3DRESVER = '(W097) ' +W_DOWN3D = '(W098) ' # Somehow arbitrary, the colors are real, but can be different PCB_MAT_COLORS = {'fr1': "937042", 'fr2': "949d70", 'fr3': "adacb4", 'fr4': "332B16", 'fr5': "6cc290"} PCB_FINISH_COLORS = {'hal': "8b898c", 'hasl': "8b898c", 'imag': "8b898c", 'enig': "cfb96e", 'enepig': "cfb96e", diff --git a/kibot/out_base_3d.py b/kibot/out_base_3d.py index 5759fb8a..30b31306 100644 --- a/kibot/out_base_3d.py +++ b/kibot/out_base_3d.py @@ -6,7 +6,7 @@ import os import requests import tempfile -from .misc import W_MISS3D, W_FAILDL, DISABLE_3D_MODEL_TEXT +from .misc import W_MISS3D, W_FAILDL, W_DOWN3D, DISABLE_3D_MODEL_TEXT from .gs import GS from .out_base import VariantOptions, BaseOutput from .kicad.config import KiConf @@ -147,6 +147,8 @@ class Base3DOptions(VariantOptions): # Push the models back for model in models_l: models.push_front(model) + if downloaded: + logger.warning(W_DOWN3D+' {} 3D models downloaded'.format(len(downloaded))) return models_replaced def list_models(self):