#1239 Do not show fracture when fracture is unchecked

This commit is contained in:
Magne Sjaastad
2017-02-22 13:29:20 +01:00
parent ac48b31e24
commit 73690e6d66
2 changed files with 4 additions and 1 deletions

View File

@@ -231,6 +231,8 @@ void RivWellFracturePartMgr::appendGeometryPartsToModel(cvf::ModelBasicList* mod
{
clearGeometryCache();
if (!m_rimFracture->isChecked()) return;
if (m_part.isNull())
{
if (m_rimFracture->attachedFractureDefinition())

View File

@@ -172,7 +172,8 @@ void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
if (changedField == &azimuth ||
changedField == &m_fractureTemplate ||
changedField == &stimPlanTimeIndexToPlot)
changedField == &stimPlanTimeIndexToPlot ||
changedField == this->objectToggleField())
{
setRecomputeGeometryFlag();