Checks for zero size image, if so, doesnt bother rendering
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user