Update animation effect checks in App.tsx

This commit is contained in:
2026-04-15 06:24:32 +02:00
parent 579f16e63f
commit 396292edaa

View File

@@ -5105,7 +5105,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
(step) => {
if (
step.type !== "controlEffect" ||
step.effect.type !== "playModelAnimation"
(step.effect.type !== "playModelAnimation" &&
step.effect.type !== "playActorAnimation")
) {
throw new Error(
"The current sequence control step does not expose an animation clip."
@@ -5132,7 +5133,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
(step) => {
if (
step.type !== "controlEffect" ||
step.effect.type !== "playModelAnimation"
(step.effect.type !== "playModelAnimation" &&
step.effect.type !== "playActorAnimation")
) {
throw new Error(
"The current sequence control step does not expose animation looping."