Mod: catch exception raised by Rotation::setValue

This commit is contained in:
wmayer
2023-03-01 17:43:04 +01:00
committed by wwmayer
parent da63fbaacf
commit d196f8c496
5 changed files with 59 additions and 34 deletions

View File

@@ -76,10 +76,14 @@ void Feature::onChanged(const App::Property* prop)
}
// if the point data has changed check and adjust the transformation as well
else if (prop == &this->Points) {
Base::Placement p;
p.fromMatrix(this->Points.getTransform());
if (p != this->Placement.getValue())
this->Placement.setValue(p);
try {
Base::Placement p;
p.fromMatrix(this->Points.getTransform());
if (p != this->Placement.getValue())
this->Placement.setValue(p);
}
catch (const Base::ValueError&) {
}
}
GeoFeature::onChanged(prop);