Bläddra i källkod

fix this.size

sunag 6 år sedan
förälder
incheckning
b7b6cb6ace
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 {