Skip to content

Commit a516fc5

Browse files
committed
findNode: fallback to original implementation (e.g. to support keyframe tracks with '.position')
1 parent 5172815 commit a516fc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GLTFLoaderAnimationPointer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ function _ensurePropertyBindingPatch() {
657657
// "path" is the animated property path, just with translated material names.
658658
PropertyBinding.findNode = function (node, path) {
659659

660+
// if the binding is empty fallback to original
661+
if (!path) return findNode(node, path);
662+
663+
660664
if (path.startsWith('.materials.')) {
661665

662666
if (_animationPointerDebug) console.log('FIND', path);

0 commit comments

Comments
 (0)