mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Merge pull request #401 from griffpatch/Effect-not-correctly-copied-to-clones
Effect not correctly copied to clones #337
This commit is contained in:
commit
eb3b7bfd40
1 changed files with 6 additions and 2 deletions
|
@ -437,7 +437,7 @@ RenderedTarget.prototype.updateAllDrawableProperties = function () {
|
|||
if (this.renderer) {
|
||||
var renderedDirectionScale = this._getRenderedDirectionAndScale();
|
||||
var costume = this.sprite.costumes[this.currentCostume];
|
||||
this.renderer.updateDrawableProperties(this.drawableID, {
|
||||
var props = {
|
||||
position: [this.x, this.y],
|
||||
direction: renderedDirectionScale.direction,
|
||||
scale: renderedDirectionScale.scale,
|
||||
|
@ -448,7 +448,11 @@ RenderedTarget.prototype.updateAllDrawableProperties = function () {
|
|||
costume.rotationCenterX / costume.bitmapResolution,
|
||||
costume.rotationCenterY / costume.bitmapResolution
|
||||
]
|
||||
});
|
||||
};
|
||||
for (var effectID in this.effects) {
|
||||
props[effectID] = this.effects[effectID];
|
||||
}
|
||||
this.renderer.updateDrawableProperties(this.drawableID, props);
|
||||
if (this.visible) {
|
||||
this.runtime.requestRedraw();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue