temporary fix improvement

This commit is contained in:
MihailRis
2025-12-08 19:21:49 +03:00
committed by ShiftyX1
parent fbc6d072e8
commit 417521e94f
2 changed files with 25 additions and 20 deletions
+7 -2
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) {