Enable nodes entering the visible range to display

This commit is contained in:
Ryan Nystrom 2015-03-17 10:52:32 -07:00
parent fa2f36004b
commit cd3ad1c86f

View File

@ -54,6 +54,11 @@
ASDisplayNodeAssert(node, @"Cannot move a nil node to a view");
ASDisplayNodeAssert(view, @"Cannot move a node to a non-existent view");
// force any nodes that are about to come into view to have display enabled
if (node.displaySuspended) {
[node recursivelySetDisplaySuspended:NO];
}
[view addSubview:node.view];
}