From fba438ee56619963712ec14edad215a21f801791 Mon Sep 17 00:00:00 2001 From: Antonio Anaya Date: Wed, 19 Feb 2025 15:50:07 +0100 Subject: [PATCH] Modified: gen_nimble_conf_options.py, added if statement filtering all but 6 in, rack sizes, preventing oversized models in rendering. --- nimble_build_system/utils/gen_nimble_conf_options.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nimble_build_system/utils/gen_nimble_conf_options.py b/nimble_build_system/utils/gen_nimble_conf_options.py index 52da22f..a94e992 100755 --- a/nimble_build_system/utils/gen_nimble_conf_options.py +++ b/nimble_build_system/utils/gen_nimble_conf_options.py @@ -40,6 +40,11 @@ def main(): if not shelf_available(device): #If a shelf cannot be made for this item then skip it continue + + # Added If statement filtering only '6 in' Rack label items, for hot fixing big boxes render issues." + if device['Rack'] != '6 in': + # This avois placing Racks different by '6 in' in the devices.json + continue item = {'value': device['ID'], 'name': device['Brand']+" "+device['Hardware']}