mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 04:46:25 +00:00
typing
This commit is contained in:
@@ -65,22 +65,22 @@ def update_name(self: "BIMContainer", context: bpy.types.Context) -> None:
|
||||
tool.Ifc.get_object(tool.Ifc.get().by_id(ifc_definition_id)).name = self.name
|
||||
|
||||
|
||||
def update_active_container_index(self, context):
|
||||
def update_active_container_index(self: "BIMSpatialDecompositionProperties", context: bpy.types.Context) -> None:
|
||||
SpatialDecompositionData.data["subelement_class"] = SpatialDecompositionData.subelement_class()
|
||||
if tool.Blender.get_enum_safe(self, "subelement_class") is None:
|
||||
self.subelement_class = SpatialDecompositionData.data["subelement_class"][0][0]
|
||||
tool.Spatial.load_contained_elements()
|
||||
|
||||
|
||||
def update_should_include_children(self, context):
|
||||
def update_should_include_children(self: "BIMSpatialDecompositionProperties", context: bpy.types.Context) -> None:
|
||||
tool.Spatial.load_contained_elements()
|
||||
|
||||
|
||||
def update_element_mode(self, context):
|
||||
def update_element_mode(self: "BIMSpatialDecompositionProperties", context: bpy.types.Context) -> None:
|
||||
tool.Spatial.load_contained_elements()
|
||||
|
||||
|
||||
def update_container_obj(self, context):
|
||||
def update_container_obj(self: "BIMObjectSpatialProperties", context: bpy.types.Context) -> None:
|
||||
if self.container_obj is None or not (obj := context.active_object):
|
||||
return
|
||||
if not (element := tool.Ifc.get_entity(self.container_obj)):
|
||||
|
||||
Reference in New Issue
Block a user