From ef41e1b8672d0cfb7ae9fc1fa6706c40a8c0cbc0 Mon Sep 17 00:00:00 2001 From: Martin Valigursky <59932779+mvaligursky@users.noreply.github.com> Date: Thu, 10 Oct 2024 09:06:08 +0100 Subject: [PATCH] Avoid spam from AnimBinder regarding duplicate nodes (#7020) Co-authored-by: Martin Valigursky --- src/framework/anim/binder/default-anim-binder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/anim/binder/default-anim-binder.js b/src/framework/anim/binder/default-anim-binder.js index 6ccd9850607..ecc14d8dab2 100644 --- a/src/framework/anim/binder/default-anim-binder.js +++ b/src/framework/anim/binder/default-anim-binder.js @@ -176,7 +176,7 @@ class DefaultAnimBinder { // #if _DEBUG const fallbackGraphPath = AnimBinder.encode(path.entityPath[path.entityPath.length - 1] || '', 'graph', path.propertyPath); if (this.visitedFallbackGraphPaths[fallbackGraphPath] === 1) { - Debug.warn(`Anim Binder: Multiple animation curves with the path ${fallbackGraphPath} are present in the ${this.graph.path} graph which may result in the incorrect binding of animations`); + Debug.warnOnce(`Anim Binder: Multiple animation curves with the path ${fallbackGraphPath} are present in the ${this.graph.path} graph which may result in the incorrect binding of animations`); } if (!Number.isFinite(this.visitedFallbackGraphPaths[fallbackGraphPath])) { this.visitedFallbackGraphPaths[fallbackGraphPath] = 0;