#3540 Create seperate 2d view with parallel, look down and linked views

This commit is contained in:
Gaute Lindkvist committed 2018-10-24 15:21:53 +02:00
1 parent 45531865ba
commit f80472ffa6
50 files changed
+1014 -177

No files matched your search

@@ -19,6 +19,7 @@
#include "RicNewViewFeature.h"
#include "Rim2dEclipseView.h"
#include "RimEclipseCase.h"
#include "RimEclipseView.h"
#include "RimGeoMechCase.h"
@@ -158,9 +159,12 @@ RimEclipseView* RicNewViewFeature::selectedEclipseView()
std::vector<RimEclipseView*> selection;
caf::SelectionManager::instance()->objectsByType(&selection);
if (selection.size() > 0)
for (RimEclipseView* view : selection)
{
return selection[0];
if (dynamic_cast<Rim2dEclipseView*>(view) == nullptr)
{
return view;
}
}
return nullptr;