First create the elements and then create initial bind of visibility by calling _bindVisibility just for the root element.
If you have many nested objects, this is a lot faster because each PropertyGroup does not call _bindVisibility at creation. Previously, it was called for each one at creation but eventually it will get called anyways because root element is a PropertyGroup which calls _bindVisibility of childs (and therefore for child PropertyGroups).
First create the elements and then create initial bind of visibility by calling
_bindVisibility
just for the root element.If you have many nested objects, this is a lot faster because each
PropertyGroup
does not call_bindVisibility
at creation. Previously, it was called for each one at creation but eventually it will get called anyways because root element is aPropertyGroup
which calls_bindVisibility
of childs (and therefore for childPropertyGroup
s).