mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -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) {
|
if (this.renderer) {
|
||||||
var renderedDirectionScale = this._getRenderedDirectionAndScale();
|
var renderedDirectionScale = this._getRenderedDirectionAndScale();
|
||||||
var costume = this.sprite.costumes[this.currentCostume];
|
var costume = this.sprite.costumes[this.currentCostume];
|
||||||
this.renderer.updateDrawableProperties(this.drawableID, {
|
var props = {
|
||||||
position: [this.x, this.y],
|
position: [this.x, this.y],
|
||||||
direction: renderedDirectionScale.direction,
|
direction: renderedDirectionScale.direction,
|
||||||
scale: renderedDirectionScale.scale,
|
scale: renderedDirectionScale.scale,
|
||||||
|
@ -448,7 +448,11 @@ RenderedTarget.prototype.updateAllDrawableProperties = function () {
|
||||||
costume.rotationCenterX / costume.bitmapResolution,
|
costume.rotationCenterX / costume.bitmapResolution,
|
||||||
costume.rotationCenterY / 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) {
|
if (this.visible) {
|
||||||
this.runtime.requestRedraw();
|
this.runtime.requestRedraw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue