Skip to content

Commit

Permalink
Sketcher: fix constraint pre selection highlight
Browse files Browse the repository at this point in the history
Fixes #992
  • Loading branch information
realthunder committed Apr 20, 2024
1 parent b63d1a5 commit 9335dd6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3541,9 +3541,6 @@ void ViewProviderSketch::updateColor(void)

auto setConstraintColors = [&](int i, const SbColor *highlightColor) {
SoSeparator *s = static_cast<SoSeparator *>(edit->constrGroup->getChild(i));
if (s->getNumChildren() == 0) {
return;
}

// Check Constraint Type
Sketcher::Constraint* constraint = getSketchObject()->Constraints.getValues()[i];
Expand Down Expand Up @@ -4022,9 +4019,6 @@ void ViewProviderSketch::drawConstraintIcons()
SoSeparator *sep = static_cast<SoSeparator *>(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;
}

Expand Down

0 comments on commit 9335dd6

Please sign in to comment.