mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Remove extra calls to updateAllDrawableProperties
(#222)
This commit is contained in:
parent
46a2fe76eb
commit
a585a08a93
2 changed files with 0 additions and 2 deletions
|
@ -38,7 +38,6 @@ util.inherits(Clone, Target);
|
||||||
Clone.prototype.initDrawable = function () {
|
Clone.prototype.initDrawable = function () {
|
||||||
if (this.renderer) {
|
if (this.renderer) {
|
||||||
this.drawableID = this.renderer.createDrawable();
|
this.drawableID = this.renderer.createDrawable();
|
||||||
this.updateAllDrawableProperties();
|
|
||||||
}
|
}
|
||||||
// If we're a clone, start the hats.
|
// If we're a clone, start the hats.
|
||||||
if (!this.isOriginal) {
|
if (!this.isOriginal) {
|
||||||
|
|
|
@ -50,7 +50,6 @@ Sprite.prototype.createClone = function () {
|
||||||
this.clones.push(newClone);
|
this.clones.push(newClone);
|
||||||
if (newClone.isOriginal) {
|
if (newClone.isOriginal) {
|
||||||
newClone.initDrawable();
|
newClone.initDrawable();
|
||||||
newClone.updateAllDrawableProperties();
|
|
||||||
}
|
}
|
||||||
return newClone;
|
return newClone;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue