Add subnode should not be called with the lock held.

This commit is contained in:
Garrett Moon
2018-08-29 16:27:35 -07:00
parent 465abb1ded
commit b124cc20a0
+1 -1
View File
@@ -251,7 +251,7 @@ typedef void (^ASImageNodeDrawParametersBlock)(ASWeakMapEntry *entry);
// For debugging purposes we don't care about locking for now
if ([ASImageNode shouldShowImageScalingOverlay] && _debugLabelNode == nil) {
ASPerformBlockOnMainThread(^{
dispatch_async(dispatch_get_main_queue(), ^{
_debugLabelNode = [[ASTextNode alloc] init];
_debugLabelNode.layerBacked = YES;
[self addSubnode:_debugLabelNode];