From 1ff07b22331fc467466b0f92faf203716a4b0c4a Mon Sep 17 00:00:00 2001 From: Hannah Troisi Date: Sun, 17 Apr 2016 21:53:01 -0700 Subject: [PATCH] Changed comment for clarity. --- AsyncDisplayKit/ASMapNode.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASMapNode.mm b/AsyncDisplayKit/ASMapNode.mm index ce8a283ce1..55dbf00898 100644 --- a/AsyncDisplayKit/ASMapNode.mm +++ b/AsyncDisplayKit/ASMapNode.mm @@ -161,7 +161,8 @@ - (void)takeSnapshot { - // set _snapshotNeeded to YES so if layout changes in the future, we'll try snapshotting again. + // If our size is zero, we want to avoid calling a default sized snapshot. Set _snapshotAfterLayout to YES + // so if layout changes in the future, we'll try snapshotting again. ASLayout *layout = self.calculatedLayout; if (layout == nil || CGSizeEqualToSize(CGSizeZero, layout.size)) { _snapshotAfterLayout = YES;