System : Added asserts and initialized pointer before calling firstAnchestorOrThisOfType()

This commit is contained in:
Magne Sjaastad
2015-10-26 10:14:45 +01:00
parent 01224dd5e6
commit 930209f527
5 changed files with 5 additions and 6 deletions

View File

@@ -293,6 +293,7 @@ void RivFemPartPartMgr::updateCellResultColor(size_t timeStepIndex, RimGeoMechCe
RimView* view = NULL;
cellResultColors->firstAnchestorOrThisOfType(view);
CVF_ASSERT(view);
RivScalarMapperUtils::applyTextureResultsToPart(m_surfaceFaces.p(), m_surfaceFacesTextureCoords.p(), mapper, m_opacityLevel, caf::FC_NONE, view->isLightingDisabled());
}