PartDesign: tidy up sketch support and base feature confusion
Not complete, transformPlacement and positionBySketch are pending...
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user