فهرست منبع

Merge pull request #1321 from nockawa/Group2DPointerEvent

Canvas2d: Sprite2D fix origin update with texture delayed loading.
Loïc Baumann 9 سال پیش
والد
کامیت
326f6d8a98
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Canvas2d/babylon.sprite2d.ts

+ 1 - 1
src/Canvas2d/babylon.sprite2d.ts

@@ -361,7 +361,7 @@
                             this.size = <Size>texture.getBaseSize();
                         }
                         this._positioningDirty();
-                        this._instanceDirtyFlags |= Sprite2D.textureProperty.flagId;  // To make sure the sprite is issued again for render
+                        this._instanceDirtyFlags |= Prim2DBase.originProperty.flagId | Sprite2D.textureProperty.flagId;  // To make sure the sprite is issued again for render
                     });
                 }
             }