Skip to content

Commit

Permalink
Avoid spam from AnimBinder regarding duplicate nodes (#7020)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <[email protected]>
  • Loading branch information
mvaligursky and Martin Valigursky committed Oct 10, 2024
1 parent bbae127 commit ef41e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/anim/binder/default-anim-binder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef41e1b

Please sign in to comment.