From 9335dd6ad7b53a0c2b93ea84df51361c83eb2219 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 20 Apr 2024 15:25:44 +0800 Subject: [PATCH] Sketcher: fix constraint pre selection highlight Fixes #992 --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 1411fa911081..97eccec2d54d 100755 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3541,9 +3541,6 @@ void ViewProviderSketch::updateColor(void) auto setConstraintColors = [&](int i, const SbColor *highlightColor) { SoSeparator *s = static_cast(edit->constrGroup->getChild(i)); - if (s->getNumChildren() == 0) { - return; - } // Check Constraint Type Sketcher::Constraint* constraint = getSketchObject()->Constraints.getValues()[i]; @@ -4022,9 +4019,6 @@ void ViewProviderSketch::drawConstraintIcons() SoSeparator *sep = static_cast(edit->constrGroup->getChild(constrId)); int numChildren = sep->getNumChildren(); if (numChildren <= CONSTRAINT_SEPARATOR_INDEX_FIRST_CONSTRAINTID) { -#ifdef FC_DEBUG - FC_ERR("Invalid constraint node " << constrId); -#endif break; }