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: