mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Add subnode should not be called with the lock held.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user