Browse Source

Canvas2D: fix Sprite2D boundingBox not updated

[trello](https://trello.com/c/EP38BV3e)
nockawa 8 năm trước cách đây
mục cha
commit
32905333da
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      canvas2D/src/Engine/babylon.sprite2d.ts

+ 1 - 1
canvas2D/src/Engine/babylon.sprite2d.ts

@@ -164,7 +164,7 @@
             }
         }
 
-        @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 4, pi => Sprite2D.spriteSizeProperty = pi)
+        @instanceLevelProperty(RenderablePrim2D.RENDERABLEPRIM2D_PROPCOUNT + 4, pi => Sprite2D.spriteSizeProperty = pi, false, true)
         /**
          * Get/set the sprite location (in pixels) in the texture
          */