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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user