when drawing constraint icon handle the case when view provider of sketch is not in sync with geometry
This commit is contained in:
@@ -2796,6 +2796,12 @@ void ViewProviderSketch::drawConstraintIcons()
|
||||
break;
|
||||
}
|
||||
|
||||
// Double-check that we can safely access the Inventor nodes
|
||||
if (constrId >= edit->constrGroup->getNumChildren()) {
|
||||
Base::Console().Warning("Can't update constraint icons because view is not in sync with sketch\n");
|
||||
break;
|
||||
}
|
||||
|
||||
// Find the Constraint Icon SoImage Node
|
||||
SoSeparator *sep = static_cast<SoSeparator *>(edit->constrGroup->getChild(constrId));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user