From 5c79392b403d9eb51204d0c2880b68606e9fd18c Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Thu, 21 Nov 2024 14:35:21 +0100 Subject: [PATCH] more robust selection getter this could actually be a function in butils --- butils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/butils.py b/butils.py index c6737be..00e5b14 100644 --- a/butils.py +++ b/butils.py @@ -713,7 +713,7 @@ def set_text_on_curve(text_properties, recursive=True): text_properties.glyphs.clear() #TODO: fix selection with context_override - previous_selection = bpy.context.selected_objects + previous_selection = bpy.context.selected_objects if hasattr(bpy.context, "selected_objects") else [ o for o in bpy.context.scene.objects if o.select_get() ] bpy.ops.object.select_all(action='DESELECT') selected_objects = []