Gui: Disable Show Placement for Body Features
This commit is contained in:
committed by
Benjamin Nauck
parent
5dc2ba40ea
commit
a86c300688
@@ -62,11 +62,6 @@ PROPERTY_SOURCE(Gui::ViewProviderDragger, Gui::ViewProviderDocumentObject)
|
||||
ViewProviderDragger::ViewProviderDragger()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(TransformOrigin, ({}), nullptr, App::Prop_Hidden, nullptr);
|
||||
ADD_PROPERTY_TYPE(ShowPlacement,
|
||||
(false),
|
||||
"Display Options",
|
||||
App::Prop_None,
|
||||
"If true, placement of object is additionally rendered.");
|
||||
|
||||
pcPlacement = new SoSwitch;
|
||||
pcPlacement->whichChild = SO_SWITCH_NONE;
|
||||
@@ -108,9 +103,6 @@ void ViewProviderDragger::onChanged(const App::Property* property)
|
||||
if (property == &TransformOrigin) {
|
||||
updateDraggerPosition();
|
||||
}
|
||||
else if (property == &ShowPlacement || property == &Visibility) {
|
||||
pcPlacement->whichChild = (ShowPlacement.getValue() && Visibility.getValue()) ? SO_SWITCH_ALL : SO_SWITCH_NONE;
|
||||
}
|
||||
|
||||
ViewProviderDocumentObject::onChanged(property);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user