PartDesign: prevent crash on delete and add body

This commit is contained in:
Stefan Tröger
2016-03-12 10:09:56 +01:00
parent 815a8e4d30
commit 9ab137f3c9

View File

@@ -267,7 +267,9 @@ void ViewProviderBody::updateData(const App::Property* prop)
void ViewProviderBody::slotChangedObjectApp ( const App::DocumentObject& obj, const App::Property& prop ) {
if (!obj.isDerivedFrom ( Part::Feature::getClassTypeId () ) ) { // we are intrested only in Part::Features
if (!obj.isDerivedFrom ( Part::Feature::getClassTypeId () ) ||
obj.isDerivedFrom ( Part::BodyBase::getClassTypeId () ) ) { // we are intrested only in Part::Features and not in bodies
return;
}