temporary fix improvement

This commit is contained in:
MihailRis 2025-12-02 22:59:56 +03:00
parent e678195a2a
commit f2ee9950c9
2 changed files with 25 additions and 20 deletions

View file

@ -390,9 +390,14 @@ void UINode::getIndices(
const std::string& id = node->getId();
if (!id.empty()) {
const auto& found = map.find(id);
if (found == map.end() || found->second.expired()) {
map[id] = node;
if (found != map.end()) {
auto prev = found->second.lock();
if (prev && prev->getParent()) {
return;
}
}
map[id] = node;
}
auto container = std::dynamic_pointer_cast<gui::Container>(node);
if (container) {