From a787a60f786cd4c654c5f75b6db8d0ac16ffa9bd Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 4 May 2025 23:29:33 +0200 Subject: [PATCH] BIM: Pass correct object for Compass while updating Visibility property Currently, if user selects `Site` object in the Model tree, and hides it while having `Compass` property selected to `true` and then unhides it, the Compass is not appearing even though the property still remains to be true. This is because for the `Compass` property itself and `Visibility` property we're using two different object types. For `Compass` property we're using View provider geometry object, whereas for the `Visibility` property we're using `Part::Feature` object. Since `Part::Feature` object doesn't have compass attribute and Compass directly under it, we're never hitting the logic to show the compass. So, this patch just changes the object type that is being passed to `updateCompassVisibility` during change of `Visibility` property, to match the same object type passed during change of `Compass` property. --- src/Mod/BIM/ArchSite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/ArchSite.py b/src/Mod/BIM/ArchSite.py index 3adfad24fb..2fdf971929 100644 --- a/src/Mod/BIM/ArchSite.py +++ b/src/Mod/BIM/ArchSite.py @@ -1069,7 +1069,7 @@ class _ViewProviderSite: self.windroseswitch.whichChild = -1 elif prop == 'Visibility': if vobj.Visibility: - self.updateCompassVisibility(self.Object) + self.updateCompassVisibility(vobj) else: self.compass.hide() elif prop == 'Orientation':