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

@@ -376,9 +376,7 @@ void TaskGrooveParameters::apply()
App::DocumentObject* support = 0;
if (groove->getTypeId().isDerivedFrom(PartDesign::Groove::getClassTypeId())) {
sketch = static_cast<PartDesign::Groove*>(groove)->Sketch.getValue<Sketcher::SketchObject*>();
if (sketch) {
support = static_cast<Sketcher::SketchObject*>(sketch)->Support.getValue();
}
support = static_cast<PartDesign::Groove*>(groove)->getBaseObject();
}
//Gui::Command::openCommand("Groove changed");