From 9a0521dad5cfc25efd355dad1e0e3fa6992c9f36 Mon Sep 17 00:00:00 2001 From: Yusarina Date: Thu, 27 Mar 2025 20:44:39 +0000 Subject: [PATCH] Fix because i stupid --- core/auto_load.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/auto_load.py b/core/auto_load.py index 8c4a7f2..dc326e6 100644 --- a/core/auto_load.py +++ b/core/auto_load.py @@ -138,9 +138,8 @@ def iter_deps_from_parent_id(cls: Type, my_classes_by_idname: Dict[str, Type]) - def get_dependency_from_annotation(value: Any) -> Optional[Type]: """Get dependency type from a type annotation""" - if isinstance(value, tuple) and len(value) == 2: - if value[0] in (bpy.props.PointerProperty, bpy.props.CollectionProperty): - return value[1]["type"] + if isinstance(value, bpy.props._PropertyDeferred): + return value.keywords.get("type") return None def iter_classes_to_register(modules: List[Any]) -> Generator[Type, None, None]: