Ensure that the TargetBrowserPair can be found regardless if the identifier of the renderable or the node is passed to the api. This fixes a bug with the "openspace.skybrowser.adjustCamera" function

This commit is contained in:
Ylva Selling
2022-03-16 16:28:44 -04:00
parent 7d3a88f007
commit 9c3b61aaf9
+1
View File
@@ -562,6 +562,7 @@ TargetBrowserPair* SkyBrowserModule::getPair(const std::string& id) {
[&](const std::unique_ptr<TargetBrowserPair>& pair) {
bool foundBrowser = pair->browserId() == id;
bool foundTarget = pair->targetRenderableId() == id;
bool foundTargetNode = pair->targetNodeId() == id;
return foundBrowser || foundTarget;
}
);