From ad7d62d13eb48569fde9d4d924c2151d77c8993e Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Sun, 4 Aug 2024 15:12:38 +0200 Subject: [PATCH] prefer active_object to object --- __init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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