mirror of
https://github.com/artiemis/artie.moe.git
synced 2026-02-14 09:01:55 +00:00
don't preload any motions
This commit is contained in:
parent
fb91251090
commit
cb23bedd90
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import * as PIXI from "pixi.js";
|
||||
import { Live2DModel, MotionPriority } from "pixi-live2d-display";
|
||||
import { Live2DModel, MotionPreloadStrategy, MotionPriority } from "pixi-live2d-display";
|
||||
import { onDestroy, onMount } from "svelte";
|
||||
|
||||
let canvas: HTMLCanvasElement;
|
||||
@ -29,7 +29,7 @@
|
||||
height: 900,
|
||||
});
|
||||
|
||||
model = await Live2DModel.from(getRandomModelUrl());
|
||||
model = await Live2DModel.from(getRandomModelUrl(), { motionPreload: MotionPreloadStrategy.NONE });
|
||||
app.stage.addChild(model as unknown as PIXI.DisplayObject);
|
||||
|
||||
canvas.style.cursor = "pointer";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user