From 8a63014d58254524f0b169b7ab4c797ab27788fb Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Mon, 5 Aug 2024 12:58:05 +0200 Subject: [PATCH] add debug timing --- butils.py | 5 +++++ 1 file changed, 5 insertions(+) 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