Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions blender_plugin/io_dif/export_dif.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def __init__(self, ob: Object, triggers: list[Object], offset, flip, double, use

marker_list = MarkerList()

cum_times = [0] # Used for "target marker" triggers and "start index"

if(marker_ob):
marker_pts = (
marker_ob.splines[0].bezier_points
Expand All @@ -367,14 +369,14 @@ def __init__(self, ob: Object, triggers: list[Object], offset, flip, double, use
smoothing_type = 1
elif path_type == "accelerate":
smoothing_type = 2
else:
smoothing_type = 0

curve_transform = None
curve_obj = next((obj for obj in bpy.data.objects if obj.data == marker_ob.original), None)
if curve_obj:
curve_transform = curve_obj.matrix_world

cum_times = [0] # Used for "target marker" triggers and "start index"

for index, pt in enumerate(marker_pts):
if index == len(marker_pts)-1:
msToNext = 0
Expand Down
Loading