[PD] fix dressup feature display when broken
As discussed in https://forum.freecadweb.org/viewtopic.php?p=479647#p479377 the user can end up without either seeing nothing or an inexisting dressup feature. This PR fixes this.
This commit is contained in:
@@ -291,6 +291,15 @@ void TaskDressUpParameters::removeItemFromListWidget(QListWidget* widget, const
|
||||
}
|
||||
}
|
||||
|
||||
void TaskDressUpParameters::hideOnError()
|
||||
{
|
||||
App::DocumentObject* dressup = DressUpView->getObject();
|
||||
if (dressup->isError())
|
||||
hideObject();
|
||||
else
|
||||
showObject();
|
||||
}
|
||||
|
||||
void TaskDressUpParameters::hideObject()
|
||||
{
|
||||
App::DocumentObject* base = getBase();
|
||||
|
||||
Reference in New Issue
Block a user