This commit is contained in:
Andrej730
2025-03-27 10:36:43 +05:00
parent 05be0f69bd
commit 64b8842055
2 changed files with 4 additions and 10 deletions
+4 -6
View File
@@ -268,14 +268,12 @@ class BIMSpatialDecompositionProperties(PropertyGroup):
should_include_children: bool
@property
def active_container(self):
if self.containers and self.active_container_index < len(self.containers):
return self.containers[self.active_container_index]
def active_container(self) -> Union[BIMContainer, None]:
return tool.Blender.get_active_uilist_element(self.containers, self.active_container_index)
@property
def active_element(self):
if self.elements and self.active_element_index < len(self.elements):
return self.elements[self.active_element_index]
def active_element(self) -> Union[Element, None]:
return tool.Blender.get_active_uilist_element(self.elements, self.active_element_index)
class BIMGridProperties(PropertyGroup):