Просмотр исходного кода

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

* Animation: Remove obsolete parameter.

* Animation: Rename `frame` to `xrFrame`.
Michael Herzog 1 год назад
Родитель
Сommit
0e8894c94f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/renderers/common/Animation.js

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

@@ -60,7 +60,7 @@ class Animation {
 	 */
 	start() {
 
-		const update = ( time, frame ) => {
+		const update = ( time, xrFrame ) => {
 
 			this._requestId = this._context.requestAnimationFrame( update );
 
@@ -70,7 +70,7 @@ class Animation {
 
 			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号