corona
corona copied to clipboard
[PLATFORM]: LineObject stroke not working correctly with ImageSheetPaint
- [x] I tried searching Solar2D forums for the solution.
Describe the bug When creating an ImageSheetPaint to attach to a line object's stroke, unexpected results occur. But when a file is used, it "works".
To Reproduce
Steps to reproduce the behavior:
line = display.newLine( objectGroup, points[1].x, points[1].y, points[2].x, points[2].y )
line.strokeWidth = 8
local paint =
{
type = "image",
filename = "rope.png"
}
line.stroke = paint
The above "works" enough... But the below does not produce anything other than disappearing lines.
local paint =
{
type = "image",
sheet = imageSheet,
frame = 1
}
line.stroke = paint