From 464722f7bddaf1f9e188d1ef61d45aa43a048b49 Mon Sep 17 00:00:00 2001 From: griffpatch Date: Thu, 9 Feb 2017 10:02:45 +0000 Subject: [PATCH] Feature - Fencing of sprites This change requires that the pull request for scratch-render (Feature fencing #82) be taken first --- src/sprites/rendered-target.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 9bbc20b23..52d5d6471 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -170,6 +170,7 @@ RenderedTarget.prototype.setXY = function (x, y) { this.x = x; this.y = y; if (this.renderer) { + this.renderer.getFencedPositionOfDrawable(this.drawableID, this); this.renderer.updateDrawableProperties(this.drawableID, { position: [this.x, this.y] });