Skip to content

Commit 43eac38

Browse files
mvaligurskyMartin Valigursky
andauthored
[Fix] Fixing recently indtroduced bug into default-anim-binder (playcanvas#3139)
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
1 parent 0c54ad8 commit 43eac38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/anim/binder/default-anim-binder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AnimBinder } from './anim-binder.js';
22
import { AnimTarget } from '../evaluator/anim-target.js';
3-
3+
import { Entity } from '../../framework/entity.js';
44
/**
55
* @private
66
* @class
@@ -34,7 +34,7 @@ class DefaultAnimBinder {
3434

3535
// walk up to the first parent node of entity type (skips internal nodes of Model)
3636
var object = node;
37-
while (object && object.prototype.name !== 'Entity') {
37+
while (object && !(object instanceof Entity)) {
3838
object = object.parent;
3939
}
4040

0 commit comments

Comments
 (0)