mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
Show measurement in static geomech view, too
This commit is contained in:
parent
a4202ec131
commit
b33d117784
@ -1706,18 +1706,19 @@ void Rim3dView::appendMeasurementToModel()
|
||||
{
|
||||
if ( !nativeOrOverrideViewer() ) return;
|
||||
|
||||
cvf::Scene* frameScene = nativeOrOverrideViewer()->frame( m_currentTimeStep, isUsingOverrideViewer() );
|
||||
if ( frameScene )
|
||||
const cvf::String name = "Measurement";
|
||||
|
||||
cvf::Scene* scene = nativeOrOverrideViewer()->currentScene( isUsingOverrideViewer() );
|
||||
if ( scene )
|
||||
{
|
||||
cvf::String name = "Measurement";
|
||||
this->removeModelByName( frameScene, name );
|
||||
Rim3dView::removeModelByName( scene, name );
|
||||
|
||||
cvf::ref<cvf::ModelBasicList> model = new cvf::ModelBasicList;
|
||||
model->setName( name );
|
||||
|
||||
addMeasurementToModel( model.p() );
|
||||
|
||||
frameScene->addModel( model.p() );
|
||||
scene->addModel( model.p() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user