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
This commit is contained in:
falken10vdl
2025-05-05 12:48:02 +02:00
committed by Andrej730
parent 1714516a81
commit 4ce2f81479
@@ -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