add fallback

This commit is contained in:
jrkb 2025-05-13 17:29:28 +02:00
parent 16bdfc8cc6
commit 79c0a563f1

View file

@ -308,8 +308,9 @@ def calc_point_on_bezier_curve(
) )
total_length += length total_length += length
# TODO: can this fail? # NOTE: this is a fallback
# and should not happen usually
return bezier_curve_obj.matrix_world @ mathutils.Vector((distance, 0, 0))
# def get_objects_by_name(name, startswith="", endswith=""): # def get_objects_by_name(name, startswith="", endswith=""):
# return [obj for obj in bpy.context.scene.objects if obj.name.startswith(startswith) and if obj.name.endswith(endswith)] # return [obj for obj in bpy.context.scene.objects if obj.name.startswith(startswith) and if obj.name.endswith(endswith)]