mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
Merge pull request #128 from storytold/feature/lip-sync-fix
fixed lipsync.
This commit is contained in:
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user