Add check that the solid_name is valid

Avoid errors when hovering on the menu's label
This commit is contained in:
Colin Rawlings
2025-02-21 14:22:40 -06:00
committed by Chris Hennes
parent 34639e777d
commit f74efa319c
@@ -155,6 +155,9 @@ def disambiguate_solid_selection(
highlight_colors_for_solid = build_highlight_map(parent_part, solid_indices)
def set_part_colors(solid_name: Optional[str]) -> None:
if solid_name not in highlight_colors_for_solid:
solid_name = None
parent_part.ViewObject.DiffuseColor = highlight_colors_for_solid[solid_name]
parent_part.ViewObject.update()