I see when I try to paint a bmpSlice as a sprite, ...
# korge
s
I see when I try to paint a bmpSlice as a sprite, the whole bitmap is painted. This is the place in sources: https://github.com/korlibs/korge/blob/17a24338a004082625bfdc0b7a440528a06d44d3/korge/src/commonMain/kotlin/com/soywiz/korge/view/Sprite.kt#L46-L52
Copy code
constructor(
        bmpSlice: BmpSlice = Bitmaps.white,
        anchorX: Double = 0.0,
        anchorY: Double = anchorX,
        hitShape: VectorPath? = null,
        smoothing: Boolean = true
    ) : this(bmpSlice.bmp, anchorX, anchorY, hitShape, smoothing)  // <= it seems that here the full bmp is taken
Is it expected? My workaround is to call
bmpSlice.extract()
...
🐛 1
For
image
, the behavior is good
d
it looks like it is a bug
extract won't use batching
1
because would be different textures
still you normally use a SpriteAnimation there
can you create an issue at github?
✔️ 1
👀 1