From 765b170efd3af37f7e2ab23a24187db40b55c789 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Mon, 23 Apr 2018 11:18:41 +0200 Subject: [PATCH] 3d Well Log Curves (#2784): call createDisplayModelAndRedraw...() when adding LAS and RFT curves. * Causes the parts to be created and added to the model. * This is already done when adding extraction curves. --- .../Commands/WellLogCommands/RicAdd3dWellLogFileCurveFeature.cpp | 1 + .../Commands/WellLogCommands/RicAdd3dWellLogRftCurveFeature.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogFileCurveFeature.cpp b/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogFileCurveFeature.cpp index e0be2d927f..00b1e8d1e9 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogFileCurveFeature.cpp +++ b/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogFileCurveFeature.cpp @@ -57,6 +57,7 @@ void RicAdd3dWellLogFileCurveFeature::onActionTriggered(bool isChecked) rim3dWellLogFileCurve->setDefaultFileCurveDataInfo(); + RiaApplication::instance()->project()->createDisplayModelAndRedrawAllViews(); RiaApplication::instance()->project()->updateConnectedEditors(); Riu3DMainWindowTools::selectAsCurrentItem(rim3dWellLogFileCurve); diff --git a/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogRftCurveFeature.cpp b/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogRftCurveFeature.cpp index b67f57feef..a715d82fe7 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogRftCurveFeature.cpp +++ b/ApplicationCode/Commands/WellLogCommands/RicAdd3dWellLogRftCurveFeature.cpp @@ -60,6 +60,7 @@ void RicAdd3dWellLogRftCurveFeature::onActionTriggered(bool isChecked) Rim3dWellLogRftCurve* rim3dWellLogRftCurve = new Rim3dWellLogRftCurve(); selectedWellPath->add3dWellLogCurve(rim3dWellLogRftCurve); + RiaApplication::instance()->project()->createDisplayModelAndRedrawAllViews(); RiaApplication::instance()->project()->updateConnectedEditors(); Riu3DMainWindowTools::selectAsCurrentItem(rim3dWellLogRftCurve);