mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 23:55:16 +00:00
Fixed lipsync and audio engine.
This commit is contained in:
1 parent
ce268e6438
commit
2c9e227ccc
2 files changed
+11
No files matched your search
@@ -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 {
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user