I don't need to add that check duh
This commit is contained in:
@@ -138,12 +138,6 @@ def iter_deps_from_parent_id(cls: Type, my_classes_by_idname: Dict[str, Type]) -
|
|||||||
|
|
||||||
def get_dependency_from_annotation(value: Any) -> Optional[Type]:
|
def get_dependency_from_annotation(value: Any) -> Optional[Type]:
|
||||||
"""Get dependency type from a type annotation"""
|
"""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 isinstance(value, tuple) and len(value) == 2:
|
||||||
if value[0] in (bpy.props.PointerProperty, bpy.props.CollectionProperty):
|
if value[0] in (bpy.props.PointerProperty, bpy.props.CollectionProperty):
|
||||||
return value[1]["type"]
|
return value[1]["type"]
|
||||||
|
|||||||
Reference in New Issue
Block a user