mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Effect not correctly copied to clones #337
Fixes Effect not correctly copied to clones #337
This commit is contained in:
parent
bdabe2efa3
commit
cf43efe3ee
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