fix drag and drop of boolean operations

This commit is contained in:
wmayer
2016-12-21 11:39:26 +01:00
parent 1a20ead8da
commit 7e82bd1d7d
2 changed files with 24 additions and 0 deletions

View File

@@ -244,6 +244,11 @@ bool ViewProviderMultiFuse::canDragObjects() const
return true;
}
bool ViewProviderMultiFuse::canDragObject(App::DocumentObject* obj) const
{
return obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId());
}
void ViewProviderMultiFuse::dragObject(App::DocumentObject* obj)
{
Part::MultiFuse* pBool = static_cast<Part::MultiFuse*>(getObject());
@@ -262,6 +267,11 @@ bool ViewProviderMultiFuse::canDropObjects() const
return true;
}
bool ViewProviderMultiFuse::canDropObject(App::DocumentObject* obj) const
{
return obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId());
}
void ViewProviderMultiFuse::dropObject(App::DocumentObject* obj)
{
Part::MultiFuse* pBool = static_cast<Part::MultiFuse*>(getObject());
@@ -363,6 +373,11 @@ bool ViewProviderMultiCommon::canDragObjects() const
return true;
}
bool ViewProviderMultiCommon::canDragObject(App::DocumentObject* obj) const
{
return obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId());
}
void ViewProviderMultiCommon::dragObject(App::DocumentObject* obj)
{
Part::MultiCommon* pBool = static_cast<Part::MultiCommon*>(getObject());
@@ -381,6 +396,11 @@ bool ViewProviderMultiCommon::canDropObjects() const
return true;
}
bool ViewProviderMultiCommon::canDropObject(App::DocumentObject* obj) const
{
return obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId());
}
void ViewProviderMultiCommon::dropObject(App::DocumentObject* obj)
{
Part::MultiCommon* pBool = static_cast<Part::MultiCommon*>(getObject());