Skip to content

Commit

Permalink
Bring patch from for_pr
Browse files Browse the repository at this point in the history
  • Loading branch information
RaSan147 committed Apr 10, 2024
1 parent b00b64b commit 0409b60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Live2DModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export class Live2DModel<IM extends InternalModel = InternalModel> extends Conta
*/
motion(
group: string,
index: number,
priority: MotionPriority,
index?: number,
priority?: MotionPriority,
{
sound = undefined,
volume = VOLUME,
Expand Down
8 changes: 6 additions & 2 deletions src/cubism4/Cubism4MotionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ export class Cubism4MotionManager extends MotionManager<CubismMotion, CubismSpec
expressionManager?: Cubism4ExpressionManager;

eyeBlinkIds: string[];
lipSyncIds: string[];
lipSyncIds = ["ParamMouthOpenY"];

constructor(settings: Cubism4ModelSettings, options?: MotionManagerOptions) {
super(settings, options);

this.definitions = settings.motions ?? {};
this.eyeBlinkIds = settings.getEyeBlinkParameters() || [];
this.lipSyncIds = settings.getLipSyncParameters() || [];

const lipSyncIds = settings.getLipSyncParameters();

if (lipSyncIds?.length) {
this.lipSyncIds = lipSyncIds;
}
this.init(options);
}

Expand Down

0 comments on commit 0409b60

Please sign in to comment.