fix: root node id overriding

This commit is contained in:
MihailRis
2025-11-23 19:37:44 +03:00
parent 17e8d9bb1b
commit 91cb5ab7d8
4 changed files with 8 additions and 9 deletions
+4 -3
View File
@@ -23,11 +23,12 @@ void UiDocument::rebuildIndices() {
map["root"] = root;
}
const UINodesMap& UiDocument::getMap() const {
return map;
void UiDocument::pushIndices(const std::shared_ptr<gui::UINode>& node) {
gui::UINode::getIndices(node, map);
map["root"] = root;
}
UINodesMap& UiDocument::getMapWriteable() {
const UINodesMap& UiDocument::getMap() const {
return map;
}