Extensions: Introduce classes and port App groups

This commit is contained in:
Stefan Tröger
2016-05-26 21:42:12 +02:00
committed by wmayer
parent a50bd5dc88
commit c5a2419e14
55 changed files with 17135 additions and 191 deletions

View File

@@ -97,7 +97,7 @@ bool ViewProviderPart::doubleClicked(void)
bool ViewProviderPart::canDropObject(App::DocumentObject* obj) const {
//it is not allowed to have any part or assembly object within a part, hence we exclude origin groups
if(obj->isDerivedFrom(App::OriginGroup::getClassTypeId()))
if(obj->hasExtension(App::OriginGroupExtension::getClassTypeId()))
return false;
return Gui::ViewProvider::canDropObject(obj);