Report full sprite info in targetsUpdate

We need more than just the name for the initial render, so send everything consistent with sprite info reports.
This commit is contained in:
Ray Schamp 2016-12-05 18:02:51 -05:00
parent adaf2df743
commit e9da046969
4 changed files with 32 additions and 13 deletions
src/engine

View file

@ -729,15 +729,7 @@ Runtime.prototype.visualReport = function (blockId, value) {
Runtime.prototype.spriteInfoReport = function (target) {
if (!target.isOriginal) return;
this.emit(Runtime.SPRITE_INFO_REPORT, {
id: target.id,
x: target.x,
y: target.y,
direction: target.direction,
costume: target.getCurrentCostume(),
visible: target.visible,
rotationStyle: target.rotationStyle
});
this.emit(Runtime.SPRITE_INFO_REPORT, target.toJSON());
};
/**