Only show a placeholder if there is a place that needs holding

This commit is contained in:
Ryan Nystrom 2015-01-12 12:26:13 -08:00
parent ae1349eb16
commit 51210d7b06

View File

@ -1275,7 +1275,7 @@ static NSInteger incrementIfFound(NSInteger i) {
[_supernode subnodeDisplayWillStart:self]; [_supernode subnodeDisplayWillStart:self];
if (_placeholderImage && _placeholderLayer) { if (_placeholderImage && _placeholderLayer && self.layer.contents == nil) {
_placeholderLayer.contents = (id)_placeholderImage.CGImage; _placeholderLayer.contents = (id)_placeholderImage.CGImage;
[self.layer addSublayer:_placeholderLayer]; [self.layer addSublayer:_placeholderLayer];
} }