Work on inserting, removing, hiding and showing features in the body

This commit is contained in:
jrheinlaender
2013-04-10 17:41:26 +04:30
committed by Stefan Tröger
parent 218f386990
commit 8390bbb999
13 changed files with 365 additions and 160 deletions

View File

@@ -80,6 +80,8 @@ void Part2DObject::positionBySupport(void)
bool Reverse = false;
gp_Pln plane;
App::DocumentObject* support = Support.getValue();
if (support == NULL)
throw Base::Exception("Sketch support has been deleted");
if (support->getTypeId().isDerivedFrom(App::Plane::getClassTypeId())) {
Place = static_cast<App::Plane*>(support)->Placement.getValue();