mExclusiveRenderTask( NULL ),
mAttachment( NULL ),
mChildren(),
+ mDepth(0u),
mDirtyFlags(AllFlags),
mIsRoot( false ),
mInheritOrientation( true ),
mAttachment = &object;
SetAllDirtyFlags();
+
+ if( mIsActive )
+ {
+ mAttachment->ConnectedToSceneGraph();
+ }
}
void Node::SetRoot(bool isRoot)
DALI_ASSERT_ALWAYS(mParent == NULL);
mParent = &parentNode;
+ mDepth = mParent->GetDepth() + 1u;
}
void Node::RecursiveDisconnectFromSceneGraph( BufferIndex updateBufferIndex, std::set<Node*>& connectedNodes, std::set<Node*>& disconnectedNodes )
// Remove back-pointer to parent
mParent = NULL;
+ mDepth = 0u;
// Remove all child pointers
mChildren.Clear();