mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Fix: Disable contour map for multi-part geomech data, as that is not supported properly in the code.
This commit is contained in:
1 parent
a2acadf3f4
commit
3cb3170331
1 file changed
+10
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include "RigActiveCellInfo.h"
|
#include "RigActiveCellInfo.h"
|
||||||
#include "RigEclipseCaseData.h"
|
#include "RigEclipseCaseData.h"
|
||||||
|
#include "RigFemPartCollection.h"
|
||||||
|
#include "RigGeoMechCaseData.h"
|
||||||
|
|
||||||
#include "Rim3dView.h"
|
#include "Rim3dView.h"
|
||||||
#include "RimCellEdgeColors.h"
|
#include "RimCellEdgeColors.h"
|
||||||
@@ -65,6 +67,14 @@ bool RicNewContourMapViewFeature::isCommandEnabled()
|
|||||||
{
|
{
|
||||||
bool selectedView = caf::SelectionManager::instance()->selectedItemOfType<RimGridView>() != nullptr;
|
bool selectedView = caf::SelectionManager::instance()->selectedItemOfType<RimGridView>() != nullptr;
|
||||||
bool selectedCase = caf::SelectionManager::instance()->selectedItemOfType<RimCase>() != 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 =
|
bool selectedEclipseContourMapCollection =
|
||||||
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseContourMapViewCollection>();
|
caf::SelectionManager::instance()->selectedItemOfType<RimEclipseContourMapViewCollection>();
|
||||||
bool selectedGeoMechContourMapCollection =
|
bool selectedGeoMechContourMapCollection =
|
||||||
|
|||||||
Reference in new issue
Block a user