mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
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:
commit
2817975e18
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue