Fix value errors in update callback

Blender is requiring update callback to return `None`, otherwise it prints `ValueError: the return value must be None`.
This commit is contained in:
Andrej730
2025-06-25 14:38:59 +05:00
parent 00414a1590
commit e92520b777
+1 -1
View File
@@ -82,7 +82,7 @@ class BIMProfileProperties(PropertyGroup):
name="Filter Material Profiles",
default=False,
description="Check to only show IfcProfileDefs attached to IfcMaterialProfiles",
update=lambda self, context: bpy.ops.bim.load_profiles(),
update=lambda self, context: (None, bpy.ops.bim.load_profiles())[0],
)
object_to_profile: PointerProperty(
name="Object to profile",