Skip to content

Commit d5e9786

Browse files
committed
fixed bug with effects when cutting a clip
1 parent 612b1ea commit d5e9786

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/windows/views/timeline_webview.py

+5
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,11 @@ def Slice_Triggered(self, action, clip_ids, trans_ids, playhead_position=0):
19151915
right_clip.data.pop('id')
19161916
right_clip.key.pop(1)
19171917

1918+
for clip_propertie_name, propertie_value in right_clip.data.items() :
1919+
if clip_propertie_name == "effects":
1920+
for item in propertie_value:
1921+
item['id'] = get_app().project.generate_id()
1922+
19181923
# Set new 'start' of right_clip (need to bump 1 frame duration more, so we don't repeat a frame)
19191924
right_clip.data["position"] = (round(float(playhead_position) * fps_float) + 1) / fps_float
19201925
right_clip.data["start"] = (round(float(clip.data["end"]) * fps_float) + 2) / fps_float

0 commit comments

Comments
 (0)