From 79c0a563f13e0a3b73826e8463ad7d8326e6e5f3 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Tue, 13 May 2025 17:29:28 +0200 Subject: [PATCH] add fallback --- butils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/butils.py b/butils.py index 924ae35..9f3243e 100644 --- a/butils.py +++ b/butils.py @@ -308,8 +308,9 @@ def calc_point_on_bezier_curve( ) 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=""): # return [obj for obj in bpy.context.scene.objects if obj.name.startswith(startswith) and if obj.name.endswith(endswith)]