| 902 | } |
| 903 | |
| 904 | Node* Node::getParentOfType( Uint32 type ) const { |
| 905 | Node* node = mParentNode; |
| 906 | while ( NULL != node ) { |
| 907 | if ( node->isType( type ) ) |
| 908 | return node; |
| 909 | node = node->mParentNode; |
| 910 | } |
| 911 | return nullptr; |
| 912 | } |
| 913 | |
| 914 | void Node::setLoadingState( bool loading ) { |
| 915 | writeNodeFlag( NODE_FLAG_LOADING, loading ? 1 : 0 ); |