Browse Source

Animation: Rename `frame` parameter to `xrFrame`. (#30558)

* Animation: Remove obsolete parameter.

* Animation: Rename `frame` to `xrFrame`.
Michael Herzog 1 year ago
parent
commit
0e8894c94f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/renderers/common/Animation.js

+ 2 - 2
src/renderers/common/Animation.js

@@ -60,7 +60,7 @@ class Animation {
 	 */
 	 */
 	start() {
 	start() {
 
 
-		const update = ( time, frame ) => {
+		const update = ( time, xrFrame ) => {
 
 
 			this._requestId = this._context.requestAnimationFrame( update );
 			this._requestId = this._context.requestAnimationFrame( update );
 
 
@@ -70,7 +70,7 @@ class Animation {
 
 
 			this.info.frame = this.nodes.nodeFrame.frameId;
 			this.info.frame = this.nodes.nodeFrame.frameId;
 
 
-			if ( this._animationLoop !== null ) this._animationLoop( time, frame );
+			if ( this._animationLoop !== null ) this._animationLoop( time, xrFrame );
 
 
 		};
 		};
 
 

粤ICP备19079148号