| 125 | } |
| 126 | |
| 127 | void VisualNode::pathUp(const NodeAllocator& na) { |
| 128 | VisualNode* cur = this; |
| 129 | while (cur) { |
| 130 | cur->setOnPath(true); |
| 131 | cur = cur->getParent(na); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | void VisualNode::unPathUp(const NodeAllocator& na) { |
| 136 | VisualNode* cur = this; |