add fallback
This commit is contained in:
parent
16bdfc8cc6
commit
79c0a563f1
1 changed files with 3 additions and 2 deletions
|
@ -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)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue