Browse Source

Merge pull request #1748 from nockawa/spriteBug

Canvas2D: fix Sprite2D boundingBox not updated
Loïc Baumann 8 years ago
parent
commit
5d2e928551
1 changed files with 1 additions and 1 deletions
  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
          */