Skip to content

Commit

Permalink
Gui: fix group visibility toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Dec 18, 2023
1 parent c2e16f2 commit 47670a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Gui/ViewProviderGroupExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ void ViewProviderGroupExtension::extensionShow() {

// when reading the Visibility property from file then do not hide the
// objects of this group because they have stored their visibility status, too
if (!getExtendedViewProvider()->isRestoring() ) {
//
// Property::User1 is used by ViewProviderDocumentObject to mark for
// temporary visibility changes. Do not propagate the change to children.
if (!getExtendedViewProvider()->isRestoring()
&& !getExtendedViewProvider()->Visibility.testStatus(App::Property::User1)) {
auto* group = getExtendedViewProvider()->getObject()->getExtensionByType<App::GroupExtension>();
for(auto obj : group->Group.getValues()) {
if(obj && !obj->Visibility.getValue())
Expand Down

0 comments on commit 47670a8

Please sign in to comment.