Fix Detail Highlight when Detail has no Geometry
- Detail circles were no drawn if detail area did not produce any geometry (detail anchor point + radius not over original part.
This commit is contained in:
@@ -288,7 +288,13 @@ App::DocumentObjectExecReturn *DrawViewDetail::execute(void)
|
||||
testBox.SetGap(0.0);
|
||||
BRepBndLib::Add(detail, testBox);
|
||||
if (testBox.IsVoid()) {
|
||||
Base::Console().Message("DrawViewDetail - detail area contains no geometry\n");
|
||||
// Base::Console().Warning("DrawViewDetail - detail area contains no geometry\n");
|
||||
TechDrawGeometry::GeometryObject* go = getGeometryObject();
|
||||
if (go != nullptr) {
|
||||
go->clear();
|
||||
}
|
||||
requestPaint();
|
||||
dvp->requestPaint();
|
||||
return new App::DocumentObjectExecReturn("DVDetail - detail area contains no geometry");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user