From 4ce2f81479e7b747b06ff39f3a55a46535dd50f2 Mon Sep 17 00:00:00 2001 From: falken10vdl <33285113+falken10vdl@users.noreply.github.com> Date: Mon, 5 May 2025 12:48:02 +0200 Subject: [PATCH] Skip non MESH and CURVE object listing elements for coloring #6657 So non MESH or CURVE objects are not listed in the Colour by property. Now all unrelated empty objects are excluded from the coloring section as they were just taking space, see - https://imgur.com/sPA8I5V --- src/bonsai/bonsai/bim/module/search/operator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/search/operator.py b/src/bonsai/bonsai/bim/module/search/operator.py index 10bb6199b7..9924fb3e3c 100644 --- a/src/bonsai/bonsai/bim/module/search/operator.py +++ b/src/bonsai/bonsai/bim/module/search/operator.py @@ -276,6 +276,8 @@ class ColourByProperty(Operator): colourscheme = {cs.name: {"colour": cs.colour[0:3], "total": 0} for cs in props.colourscheme} for obj in context.visible_objects: + if obj.type not in ("MESH", "CURVE"): + continue element = tool.Ifc.get_entity(obj) if not element: continue