From d7fee2c961496977a47a5cbfa8885cced7d9215f Mon Sep 17 00:00:00 2001 From: Yusarina Date: Thu, 27 Mar 2025 20:42:43 +0000 Subject: [PATCH] I don't need to add that check duh --- core/auto_load.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/core/auto_load.py b/core/auto_load.py index 4925f91..8c4a7f2 100644 --- a/core/auto_load.py +++ b/core/auto_load.py @@ -138,15 +138,9 @@ 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""" - blender_version = bpy.app.version - - if blender_version >= (2, 93): - if isinstance(value, bpy.props._PropertyDeferred): - return value.keywords.get("type") - else: - 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, tuple) and len(value) == 2: + if value[0] in (bpy.props.PointerProperty, bpy.props.CollectionProperty): + return value[1]["type"] return None def iter_classes_to_register(modules: List[Any]) -> Generator[Type, None, None]: