Merge pull request #876 from paulkaplan/add-size-setter

Allow size to be set through postSpriteInfo, and emit updates when it is
This commit is contained in:
Paul Kaplan 2017-12-21 15:48:07 -05:00 committed by GitHub
commit 2817975e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,6 +329,7 @@ class RenderedTarget extends Target {
this.runtime.requestRedraw();
}
}
this.runtime.requestTargetsUpdate(this);
}
/**
@ -862,6 +863,9 @@ class RenderedTarget extends Target {
if (data.hasOwnProperty('visible')) {
this.setVisible(data.visible);
}
if (data.hasOwnProperty('size')) {
this.setSize(data.size);
}
}
/**