mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-05 10:59:47 -05:00
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:
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user