We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c14baa commit 6f50588Copy full SHA for 6f50588
1 file changed
src/nub/core/Graph.java
@@ -1913,7 +1913,12 @@ public void fit(Node node, float duration) {
1913
_interpolator.reset();
1914
_interpolator.clear();
1915
_interpolator.addKeyFrame(eye().detach());
1916
- _interpolator.addKeyFrame(node.detach(), duration);
+ // 2nd node is bit of a challenge. Note that:
1917
+ //_interpolator.addKeyFrame(node.detach(), duration);
1918
+ // doesn't work always since the node may be moving (see the Flock example)
1919
+ Node dummy = new Node(node);
1920
+ dummy.disableTagging();
1921
+ _interpolator.addKeyFrame(dummy, duration);
1922
_interpolator.run();
1923
}
1924
0 commit comments