From f7758b7952f154632cde6079f9ac7761d2999d53 Mon Sep 17 00:00:00 2001 From: szrpf <27185709@qq.com> Date: Sun, 14 May 2023 20:19:25 +0800 Subject: [PATCH] Signed-off-by: szrpf <27185709@qq.com> --- assets/Script/ActionShadow.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/Script/ActionShadow.ts b/assets/Script/ActionShadow.ts index 392473d..24be92c 100644 --- a/assets/Script/ActionShadow.ts +++ b/assets/Script/ActionShadow.ts @@ -98,6 +98,7 @@ export default class ActionShadow extends cc.Component { this.nodeOpacity = this.node.opacity; this.model = this.node.getComponent(cc.Animation); this.model && (this.model.currentClip = this.model.defaultClip); + this.node['_updateWorldMatrix'](); this.updateShadowNum(); this.updateDeltTime(); this.updateShadowData();