Open
Description
Expected Behavior
A Skin created for a costume should have the same bounds as that costume.
Actual Behavior
A Skin created for a Wx0 or 0xH (for any value of W or H) goes through the setEmptyImageData
path which always leads to a 1x1 image (which is fine) and matching bounds (arguably not fine). The difference can be detected through fencing behavior and probably a few other ways.
Steps to Reproduce
These steps will work until we fix #434
- Create or edit a project which uses the pen extension
- Create or edit a costume with non-zero width and height. The default cat costume is fine.
- Add a perfectly horizontal or vertical line
- Delete everything from the costume EXCEPT for the perfectly horizontal or vertical line.
- Due to Vector vertical and horizontal line costumes not showing on stage #434, a perfectly horizontal line will be treated as having a height of 0, and a perfectly vertical line will be treated as having a width of 0.
- Adjust the rotation center so that it is outside the model's bounds.
- Use
pen down
andforever { go to random position }
to see the fencing behavior.
Example (thanks @fsih!):