fix for scene merging with custom components when one of the scenes didn't register the type

This commit is contained in:
Turanszki Janos
2025-05-07 06:51:49 +02:00
parent 1dd80553ff
commit 8cb7c9ea7e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -995,6 +995,8 @@ namespace wi::scene
{
for (auto& entry : componentLibrary.entries)
{
if (other.componentLibrary.entries.count(entry.first) == 0)
continue;
entry.second.component_manager->Merge(*other.componentLibrary.entries[entry.first].component_manager);
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 71;
// minor bug fixes, alterations, refactors, updates
const int revision = 764;
const int revision = 765;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);