Skip to content

Commit

Permalink
QuickMeasure: Do not measure datums
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddleStroke authored Mar 7, 2025
1 parent aa90da1 commit fcfbbc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Measure/Gui/QuickMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include <Mod/Part/App/PartFeature.h>
#include <Mod/Part/App/TopoShape.h>
#include <Mod/Part/App/DatumFeature.h>

#include <Mod/Measure/App/Measurement.h>

Expand Down Expand Up @@ -134,7 +135,7 @@ bool QuickMeasure::shouldMeasure(const Gui::SelectionChanges& msg) const
bool QuickMeasure::isObjAcceptable(App::DocumentObject* obj)
{
// only measure shapes
if (obj && obj->isDerivedFrom<Part::Feature>()) {
if (obj && obj->isDerivedFrom<Part::Feature>() && !obj->isDerivedFrom<Part::Datum>()) {
return true;
}

Expand Down

0 comments on commit fcfbbc7

Please sign in to comment.