mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-07 14:43:10 -06:00
Fix: Disable contour map for multi-part geomech data, as that is not supported properly in the code.
This commit is contained in:
parent
a2acadf3f4
commit
3cb3170331
@ -20,6 +20,8 @@
|
||||
|
||||
#include "RigActiveCellInfo.h"
|
||||
#include "RigEclipseCaseData.h"
|
||||
#include "RigFemPartCollection.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimCellEdgeColors.h"
|
||||
@ -65,6 +67,14 @@ bool RicNewContourMapViewFeature::isCommandEnabled()
|
||||
{
|
||||
bool selectedView = caf::SelectionManager::instance()->selectedItemOfType<RimGridView>() != nullptr;
|
||||
bool selectedCase = caf::SelectionManager::instance()->selectedItemOfType<RimCase>() != nullptr;
|
||||
|
||||
RimGeoMechView* gmView = caf::SelectionManager::instance()->selectedItemOfType<RimGeoMechView>();
|
||||
if ( gmView )
|
||||
{
|
||||
// if we have more than one geomech part, contour maps does not work with the current implementation
|
||||
if ( gmView->femParts()->partCount() > 1 ) return false;
|
||||
}
|
||||
|
||||
bool selectedEclipseContourMapCollection =
|
||||
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseContourMapViewCollection>();
|
||||
bool selectedGeoMechContourMapCollection =
|
||||
|
Loading…
Reference in New Issue
Block a user