Allow interchangable use of link properties and their derivatives
This commit is contained in:
@@ -106,7 +106,7 @@ void ViewProviderCompound::updateData(const App::Property* prop)
|
||||
|
||||
this->DiffuseColor.setValues(compCol);
|
||||
}
|
||||
else if (prop->getTypeId() == App::PropertyLinkList::getClassTypeId()) {
|
||||
else if (prop->getTypeId().isDerivedFrom(App::PropertyLinkList::getClassTypeId())) {
|
||||
const std::vector<App::DocumentObject *>& pBases = static_cast<const App::PropertyLinkList*>(prop)->getValues();
|
||||
for (std::vector<App::DocumentObject *>::const_iterator it = pBases.begin(); it != pBases.end(); ++it) {
|
||||
if (*it) Gui::Application::Instance->hideViewProvider(*it);
|
||||
|
||||
Reference in New Issue
Block a user