mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
temporary fix improvement
This commit is contained in:
parent
e678195a2a
commit
f2ee9950c9
2 changed files with 25 additions and 20 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue