Fix new bubbles not moving with their owning sprite.

This was the original issue #728 that spurred these changes.
This commit is contained in:
Paul Kaplan 2017-10-23 11:20:46 -04:00
parent 87a0224790
commit 5ca58c7ceb

View file

@ -174,6 +174,7 @@ class Scratch3LooksBlocks {
bubbleState.drawableId = this.runtime.renderer.createDrawable(); bubbleState.drawableId = this.runtime.renderer.createDrawable();
bubbleState.skinId = this.runtime.renderer.createTextSkin(type, text, bubbleState.onSpriteRight, [0, 0]); bubbleState.skinId = this.runtime.renderer.createTextSkin(type, text, bubbleState.onSpriteRight, [0, 0]);
bubbleState.visible = true;
this.runtime.renderer.setDrawableOrder(bubbleState.drawableId, Infinity); this.runtime.renderer.setDrawableOrder(bubbleState.drawableId, Infinity);
this.runtime.renderer.updateDrawableProperties(bubbleState.drawableId, { this.runtime.renderer.updateDrawableProperties(bubbleState.drawableId, {