PartDesign: Fix revolution
It failed to close task if starting a body.
This commit is contained in:
parent
f688546106
commit
34784b2d29
|
@ -373,7 +373,11 @@ void TaskRevolutionParameters::apply()
|
|||
App::DocumentObject* support = 0;
|
||||
if (revolve->getTypeId().isDerivedFrom(PartDesign::Revolution::getClassTypeId())) {
|
||||
sketch = static_cast<PartDesign::Revolution*>(revolve)->Sketch.getValue();
|
||||
support = static_cast<PartDesign::Revolution*>(revolve)->getBaseObject();
|
||||
try{//throws if no base
|
||||
support = static_cast<PartDesign::Revolution*>(revolve)->getBaseObject();
|
||||
} catch (Base::Exception) {
|
||||
support = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
//Gui::Command::openCommand("Revolution changed");
|
||||
|
|
Loading…
Reference in New Issue
Block a user