Futile icon indicating copy to clipboard operation
Futile copied to clipboard

Fix issues caused by the late initialization of sprite.element

Open MattRix opened this issue 11 years ago • 0 comments

If someone sets sprite.element and then tries to get sprite.width, it will be incorrect because the actual texture rect is created during the update loop. There should probably be a way to create it if it needs to be created when someone is accessing .width or .height or .textureRect

MattRix avatar May 25 '13 05:05 MattRix