From ca8b4302a3c7e9cc06a0d890f667c023682c7eff Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sun, 18 May 2025 18:46:35 +0200 Subject: [PATCH] fix accessing None --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 2a71c8f..4b8a7ab 100644 --- a/__init__.py +++ b/__init__.py @@ -724,7 +724,7 @@ class ABC3D_PT_TextPropertiesPanel(bpy.types.Panel): if f"{utils.prefix()}_linked_textobject" in a_o: text_index = a_o[f"{utils.prefix()}_linked_textobject"] return bpy.context.scene.abc3d_data.available_texts[text_index] - elif f"{utils.prefix()}_linked_textobject" in a_o.parent: + elif a_o.parent is not None and f"{utils.prefix()}_linked_textobject" in a_o.parent: text_index = a_o.parent[f"{utils.prefix()}_linked_textobject"] return bpy.context.scene.abc3d_data.available_texts[text_index] else: