PartDesign: Adopt primitive preview

The preview was developed when the "one feature only" visibility rule was not yet introduced. This commit maks it work again.
This commit is contained in:
Stefan Tröger
2016-04-09 10:54:26 +02:00
parent 6bf31e841e
commit 8b0d53358a
4 changed files with 25 additions and 18 deletions

View File

@@ -25,6 +25,7 @@
#ifndef _PreComp_
# include <QMessageBox>
#include <Inventor/nodes/SoSwitch.h>
#endif
#include <Gui/Command.h>
@@ -237,3 +238,12 @@ void ViewProvider::setBodyMode(bool bodymode) {
prop->setStatus(App::Property::Hidden, bodymode);
}
}
void ViewProvider::makeTemporaryVisible(bool onoff)
{
//make sure to not use the overridden versions, as they change proeprties
if(onoff)
Gui::ViewProvider::show();
else
Gui::ViewProvider::hide();
}