[TD]prevent spurious recompute on click/drag

This commit is contained in:
Wanderer Fan
2022-05-28 20:36:01 -04:00
committed by WandererFan
parent 714be34961
commit 3f34fff3c3
4 changed files with 41 additions and 33 deletions

View File

@@ -98,6 +98,13 @@ short DrawProjGroupItem::mustExecute() const
void DrawProjGroupItem::onChanged(const App::Property *prop)
{
if ((prop == &X) ||
(prop == &Y)) {
DrawProjGroup* parent = getPGroup();
if (parent != nullptr) {
parent->touch(false);
}
}
TechDraw::DrawViewPart::onChanged(prop);
}