Fixed lipsync and audio engine.

This commit is contained in:
Quicksticks-oss committed 2024-04-15 21:16:25 -04:00
1 parent ce268e6438
commit 2c9e227ccc
2 files changed
+11

No files matched your search

+8
View File
@@ -1121,7 +1121,15 @@ class Editor {
if (!this.rendering && this.timeline.is_playing) {
this.timeline.is_playing = false;
this.timeline.scrubber_frame_position = 0;
this.timeline.current_time = 0;
this.timeline.stepFrame(0);
this.timeline.resetScene();
this.switchCameraView();
if (this.activeScene.hot_items) {
this.activeScene.hot_items.forEach((element) => {
element.visible = true;
});
}
}
else {
+3
View File
@@ -453,6 +453,9 @@ export class TimeLine {
element.type === ClipType.AUDIO &&
element.group === ClipGroup.CHARACTER
) {
this.lipSync_engine.clips[
element.object_uuid + element.media_id
].stop();
this.lipSync_engine.clips[
element.object_uuid + element.media_id
].reset();