Bläddra i källkod

Merge pull request #10962 from fernandojsg/clockdelta

First call to Clock.getDelta() should returns 0
Mr.doob 8 år sedan
förälder
incheckning
264808e513
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/core/Clock.js

+ 1 - 0
src/core/Clock.js

@@ -47,6 +47,7 @@ Object.assign( Clock.prototype, {
 		if ( this.autoStart && ! this.running ) {
 		if ( this.autoStart && ! this.running ) {
 
 
 			this.start();
 			this.start();
+			return 0;
 
 
 		}
 		}