mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2581 3D wellLog curves: Add function to set property detaults from view
This commit is contained in:
@@ -53,6 +53,13 @@ void RicAdd3dWellLogCurveFeature::onActionTriggered(bool isChecked)
|
||||
RimWellPath* selectedWellPath = RicWellLogTools::selectedWellPath();
|
||||
|
||||
Rim3dWellLogCurve* rim3dWellLogCurve = new Rim3dWellLogCurve();
|
||||
|
||||
Rim3dView* view = RiaApplication::instance()->activeReservoirView();
|
||||
if (view)
|
||||
{
|
||||
rim3dWellLogCurve->setPropertiesFromView(view);
|
||||
}
|
||||
|
||||
selectedWellPath->add3dWellLogCurve(rim3dWellLogCurve);
|
||||
|
||||
RiaApplication::instance()->project()->updateConnectedEditors();
|
||||
|
||||
Reference in New Issue
Block a user