Fix for globebrowsing widget in ImGUI

This commit is contained in:
Alexander Bock
2019-05-27 13:46:12 +02:00
parent 1f861d8ed5
commit 0c36a999d2

View File

@@ -25,6 +25,7 @@
#include <modules/imgui/include/guiglobebrowsingcomponent.h>
#include <modules/globebrowsing/globebrowsingmodule.h>
#include <modules/globebrowsing/src/renderableglobe.h>
#include <modules/imgui/include/imgui_include.h>
#include <openspace/engine/globals.h>
#include <openspace/engine/moduleengine.h>
@@ -72,8 +73,10 @@ void GuiGlobeBrowsingComponent::render() {
nodes.begin(),
nodes.end(),
[](SceneGraphNode* n) {
using namespace globebrowsing;
const Renderable* r = n->renderable();
return !r || r->identifier() != "RenderableGlobe";
const RenderableGlobe* rg = dynamic_cast<const RenderableGlobe*>(r);
return rg == nullptr;
}
),
nodes.end()