PartDesign: tidy up sketch support and base feature confusion

Not complete, transformPlacement and positionBySketch are pending...
This commit is contained in:
DeepSOIC
2015-06-29 22:50:31 +03:00
committed by Stefan Tröger
parent b67c8bd34d
commit 03be8e1bba
11 changed files with 61 additions and 109 deletions

View File

@@ -372,10 +372,8 @@ void TaskRevolutionParameters::apply()
App::DocumentObject* sketch = 0;
App::DocumentObject* support = 0;
if (revolve->getTypeId().isDerivedFrom(PartDesign::Revolution::getClassTypeId())) {
sketch = static_cast<PartDesign::Revolution*>(revolve)->Sketch.getValue<Sketcher::SketchObject*>();
if (sketch) {
support = static_cast<Sketcher::SketchObject*>(sketch)->Support.getValue();
}
sketch = static_cast<PartDesign::Revolution*>(revolve)->Sketch.getValue();
support = static_cast<PartDesign::Revolution*>(revolve)->getBaseObject();
}
//Gui::Command::openCommand("Revolution changed");