diff --git a/__init__.py b/__init__.py index 8e016c6..5aad9dd 100644 --- a/__init__.py +++ b/__init__.py @@ -412,11 +412,11 @@ class FONT3D_PT_TextPropertiesPanel(bpy.types.Panel): bl_region_type = "UI" def get_active_text_properties(self): - if type(bpy.context.object) != type(None) and bpy.context.object.select_get(): + if type(bpy.context.active_object) != type(None):# and bpy.context.object.select_get(): for t in bpy.context.scene.font3d_data.available_texts: - if bpy.context.object == t.text_object: + if bpy.context.active_object == t.text_object: return t - if bpy.context.object.parent == t.text_object: + if bpy.context.active_object.parent == t.text_object: return t return None