Explorar o código

fix this.size

sunag %!s(int64=6) %!d(string=hai) anos
pai
achega
b7b6cb6ace
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/js/nodes/accessors/ResolutionNode.js

+ 2 - 2
examples/js/nodes/accessors/ResolutionNode.js

@@ -24,8 +24,8 @@ ResolutionNode.prototype.updateFrame = function ( frame ) {
 
 		var pixelRatio = frame.renderer.getPixelRatio();
 
-		this.x = size.width * pixelRatio;
-		this.y = size.height * pixelRatio;
+		this.x = this.size.width * pixelRatio;
+		this.y = this.size.height * pixelRatio;
 
 	} else {