Merge pull request #128 from storytold/feature/lip-sync-fix

fixed lipsync.
This commit is contained in:
ArEnSc authored and GitHub committed 2024-04-09 23:15:44 -04:00
commit 6cce0ab14a
1 file changed
+2 -1
+2 -1
View File
@@ -195,6 +195,7 @@ export class TimeLine {
data_json['scale'],
data_json['offset'],
data_json['keyframe_uuid']);
await this.addPlayableClip(new ClipUI(
data_json['version'],
ClipType.TRANSFORM,
@@ -460,7 +461,7 @@ export class TimeLine {
if (this.scrubber_frame_position + 1 >= element.length) {
this.lipSync_engine.clips[element.object_uuid + element.media_id].stop();
} else if (object) {
await this.lipSync_engine.clips[element.object_uuid].play(object);
await this.lipSync_engine.clips[element.object_uuid + element.media_id].play(object);
this.lipSync_engine.clips[element.object_uuid + element.media_id].step();
}
} else if (element.type === ClipType.ANIMATION) {