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)]