浏览代码

[fx] fix anims

Clément Espeute 1 月之前
父节点
当前提交
686181a68f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      hrt/prefab/fx/FX.hx

+ 5 - 0
hrt/prefab/fx/FX.hx

@@ -323,6 +323,11 @@ class FXAnimation extends h3d.scene.Object {
 
 		if (fullSync) {
 			syncAnims(localTime, dt);
+
+			if(customAnims != null)
+				for(anim in customAnims)
+					anim.setTime(localTime);
+
 			syncParticles(localTime, dt, isSeek);
 
 			for (t in trails) {