#2581 3D wellLog curves: Add function to set property detaults from view

This commit is contained in:
Rebecca Cox
2018-03-07 14:24:18 +01:00
parent 9b8c06462c
commit 46127ee724
3 changed files with 103 additions and 3 deletions

View File

@@ -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();