Drags and drop with groups
This commit is contained in:
@@ -154,3 +154,11 @@ void ViewProviderCompound::dropObject(App::DocumentObject* obj)
|
||||
pShapes.push_back(obj);
|
||||
pComp->Links.setValues(pShapes);
|
||||
}
|
||||
|
||||
void ViewProviderCompound::replaceObject(App::DocumentObject* oldValue, App::DocumentObject* newValue)
|
||||
{
|
||||
Part::Compound* pBool = static_cast<Part::Compound*>(getObject());
|
||||
std::vector<App::DocumentObject*> pShapes = pBool->Links.getValues();
|
||||
std::replace(pShapes.begin(), pShapes.end(), oldValue, newValue);
|
||||
pBool->Links.setValues(pShapes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user