add debug timing

This commit is contained in:
themancalledjakob 2024-08-05 12:58:05 +02:00
parent 85ed21ef22
commit 8a63014d58

View file

@ -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