mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
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:
@@ -82,7 +82,7 @@ class BIMProfileProperties(PropertyGroup):
|
|||||||
name="Filter Material Profiles",
|
name="Filter Material Profiles",
|
||||||
default=False,
|
default=False,
|
||||||
description="Check to only show IfcProfileDefs attached to IfcMaterialProfiles",
|
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(
|
object_to_profile: PointerProperty(
|
||||||
name="Object to profile",
|
name="Object to profile",
|
||||||
|
|||||||
Reference in New Issue
Block a user