diff --git a/butils.py b/butils.py index b1462f7..413f23d 100644 --- a/butils.py +++ b/butils.py @@ -3,6 +3,7 @@ import mathutils import queue import importlib import os +# import time # for debugging performance # then import dependencies for our addon if "Font" in locals(): @@ -490,6 +491,7 @@ def ShowMessageBox(title = "Message Box", icon = 'INFO', message=""): bpy.context.window_manager.popup_menu(draw, title = title, icon = icon) def set_text_on_curve(text_properties): + # starttime = time.perf_counter_ns() mom = text_properties.text_object if mom.type != "CURVE": return False @@ -622,4 +624,7 @@ def set_text_on_curve(text_properties): bpy.context.view_layer.objects.active = mom bpy.ops.object.parent_set(type='OBJECT') + # endtime = time.perf_counter_ns() + # elapsedtime = endtime - starttime + return True