mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Be smart
This commit is contained in:
@@ -2154,7 +2154,7 @@ ASDISPLAYNODE_INLINE BOOL subtreeIsRasterized(ASDisplayNode *node) {
|
||||
// It is safe to access the rootNode ivar because all children
|
||||
// are synchronously removed from a node during deallocation
|
||||
// i.e. _setSupernode:nil.
|
||||
unowned auto newRoot = newSupernode->_rootNode;
|
||||
unowned auto newRoot = newSupernode ? newSupernode->_rootNode : self;
|
||||
_rootNode = newRoot;
|
||||
|
||||
// Push new root node ref down while holding self.
|
||||
|
||||
Reference in New Issue
Block a user