Fix search of pairs to include scene graph node identifier as well

This commit is contained in:
Ylva Selling
2022-03-23 09:21:18 -04:00
parent 5bbf7d3d33
commit c3c453b45c

View File

@@ -376,7 +376,7 @@ TargetBrowserPair* SkyBrowserModule::getPair(const std::string& id) {
bool foundBrowser = pair->browserId() == id;
bool foundTarget = pair->targetRenderableId() == id;
bool foundTargetNode = pair->targetNodeId() == id;
return foundBrowser || foundTarget;
return foundBrowser || foundTarget || foundTargetNode;
}
);
if (it == std::end(_targetsBrowsers)) {