Skip to content

Commit f74efa3

Browse files
colinRawlingschennes
authored andcommitted
Add check that the solid_name is valid
Avoid errors when hovering on the menu's label
1 parent 34639e7 commit f74efa3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Mod/Fem/femguiutils/disambiguate_solid_selection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def disambiguate_solid_selection(
155155
highlight_colors_for_solid = build_highlight_map(parent_part, solid_indices)
156156

157157
def set_part_colors(solid_name: Optional[str]) -> None:
158+
if solid_name not in highlight_colors_for_solid:
159+
solid_name = None
160+
158161
parent_part.ViewObject.DiffuseColor = highlight_colors_for_solid[solid_name]
159162
parent_part.ViewObject.update()
160163

0 commit comments

Comments
 (0)