Gui: Hide Placement Indicator with object

This commit is contained in:
Kacper Donat
2025-04-02 23:44:47 +02:00
committed by Benjamin Nauck
parent 2a4c7bc0b5
commit 5dc2ba40ea

View File

@@ -108,8 +108,8 @@ void ViewProviderDragger::onChanged(const App::Property* property)
if (property == &TransformOrigin) {
updateDraggerPosition();
}
else if (property == &ShowPlacement) {
pcPlacement->whichChild = ShowPlacement.getValue() ? SO_SWITCH_ALL : SO_SWITCH_NONE;
else if (property == &ShowPlacement || property == &Visibility) {
pcPlacement->whichChild = (ShowPlacement.getValue() && Visibility.getValue()) ? SO_SWITCH_ALL : SO_SWITCH_NONE;
}
ViewProviderDocumentObject::onChanged(property);