Mod: catch exception raised by Rotation::setValue
This commit is contained in:
@@ -544,9 +544,13 @@ void Feature::onChanged(const App::Property* prop)
|
||||
Base::Placement p;
|
||||
// shape must not be null to override the placement
|
||||
if (!this->Shape.getValue().IsNull()) {
|
||||
p.fromMatrix(this->Shape.getShape().getTransform());
|
||||
if (p != this->Placement.getValue())
|
||||
this->Placement.setValue(p);
|
||||
try {
|
||||
p.fromMatrix(this->Shape.getShape().getTransform());
|
||||
if (p != this->Placement.getValue())
|
||||
this->Placement.setValue(p);
|
||||
}
|
||||
catch (const Base::ValueError&) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user