Checks for zero size image, if so, doesnt bother rendering

This commit is contained in:
Curtis Hard
2016-12-06 21:51:25 +00:00
parent 606626e4a0
commit 629be19bf3
+5
View File
@@ -72,6 +72,11 @@
{
// run the transforms
// draw the image
if(self.width == 0.f || self.height == 0.f) {
return;
}
// make sure path is set
if(path == nil) {
path = [self path];
}