Moved some methods from PartDesign::Body to Part::BodyBase so the SketchObjects will be removed cleanly from the Body when deleted
This commit is contained in:
committed by
Stefan Tröger
parent
857ede8847
commit
5ac8aeaf2c
@@ -82,7 +82,7 @@ void ViewProviderDatumLine::updateData(const App::Property* prop)
|
||||
Base::Vector3d dir = pcDatum->_Direction.getValue();
|
||||
|
||||
// Get limits of the line from bounding box of the body
|
||||
PartDesign::Body* body = PartDesign::Body::findBodyOf(this->getObject());
|
||||
PartDesign::Body* body = static_cast<PartDesign::Body*>(Part::BodyBase::findBodyOf(this->getObject()));
|
||||
if (body == NULL)
|
||||
return;
|
||||
Part::Feature* tipSolid = static_cast<Part::Feature*>(body->getPrevSolidFeature());
|
||||
|
||||
Reference in New Issue
Block a user