From 9a703186debdff51d338d285348a81490ff3a5c1 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 3 Feb 2021 12:54:05 -0300 Subject: [PATCH] Removed useless test in out_step. The undo_3d_models can't be empty when calling undo_3d_models_rename. In the worst case won't do any damage doing the loop. --- kibot/out_step.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kibot/out_step.py b/kibot/out_step.py index 3549feec..80cc16c6 100644 --- a/kibot/out_step.py +++ b/kibot/out_step.py @@ -72,8 +72,6 @@ class STEPOptions(VariantOptions): def undo_3d_models_rename(self): """ Restores the file name for any renamed 3D module """ - if not self.undo_3d_models: - return for m in GS.board.GetModules(): # Get the model references models = m.Models()