#1572 Do not show polygon for ellipsis fracture

This commit is contained in:
Magne Sjaastad 2017-06-07 11:17:56 +02:00
parent 689e62a22e
commit 29e1b10bcd

View File

@ -447,8 +447,6 @@ void RivWellFracturePartMgr::appendGeometryPartsToModel(cvf::ModelBasicList* mod
{
model->addPart(m_StimPlanMeshPart.p());
}
}
else
{
@ -461,7 +459,10 @@ void RivWellFracturePartMgr::appendGeometryPartsToModel(cvf::ModelBasicList* mod
{
model->addPart(m_part.p());
}
if (m_rimFracture->showPolygonFractureOutline() && m_polygonPart.notNull())
if (dynamic_cast<RimStimPlanFractureTemplate*>(m_rimFracture->attachedFractureDefinition())
&& m_rimFracture->showPolygonFractureOutline()
&& m_polygonPart.notNull())
{
model->addPart(m_polygonPart.p());
}