Fix for issue #6187 - hide surfaces when creating a contour map

This commit is contained in:
Jon Jenssen 2020-08-05 13:20:59 +02:00
parent bb8612c6a6
commit 0ce53a3219

View File

@ -31,6 +31,7 @@
#include "RimGeoMechContourMapViewCollection.h"
#include "RimGeoMechView.h"
#include "RimSurfaceInViewCollection.h"
#include "RimFaultInViewCollection.h"
#include "RimSimWellInViewCollection.h"
@ -298,6 +299,9 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
contourMap->setGeoMechCase( geoMechCase );
contourMap->setBackgroundColor( cvf::Color3f( 1.0f, 1.0f, 0.98f ) ); // Ignore original view background
contourMap->setDefaultCustomName();
// make sure no surfaces are shown in the view when the contourmap is generated
contourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
caf::PdmDocument::updateUiIconStateRecursively( contourMap );