mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 06:49:19 -04:00
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:
parent
adaf2df743
commit
e9da046969
4 changed files with 32 additions and 13 deletions
src/engine
|
@ -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());
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue