PartDesign: fix showing base object on newly opened file, cleanup
This commit is contained in:
parent
46a218ed24
commit
ef14bbd88a
|
@ -242,8 +242,12 @@ void ViewProvider::setBodyMode(bool bodymode) {
|
|||
void ViewProvider::makeTemporaryVisible(bool onoff)
|
||||
{
|
||||
//make sure to not use the overridden versions, as they change proeprties
|
||||
if(onoff)
|
||||
if (onoff) {
|
||||
if (VisualTouched) {
|
||||
updateVisual(static_cast<Part::Feature*>(getObject())->Shape.getValue());
|
||||
}
|
||||
Gui::ViewProvider::show();
|
||||
}
|
||||
else
|
||||
Gui::ViewProvider::hide();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user