Fixed viz bug introduced by new texturing method

SHA: a9794815c7
This commit is contained in:
Magne Sjaastad
2014-08-11 11:02:16 +02:00
parent 24a464ecf9
commit 4c00a48a25
4 changed files with 39 additions and 6 deletions

View File

@@ -139,6 +139,11 @@ void RivFaultPartMgr::updateCellResultColor(size_t timeStepIndex, RimResultSlot*
m_grid->gridIndex(),
m_nativeFaultGenerator->cellFromQuadMapper());
if (!texturer.isValid())
{
return;
}
texturer.createTextureCoords(m_nativeFaultFacesTextureCoords.p());
}
@@ -182,6 +187,11 @@ void RivFaultPartMgr::updateCellResultColor(size_t timeStepIndex, RimResultSlot*
m_grid->gridIndex(),
m_oppositeFaultGenerator->cellFromQuadMapper());
if (!texturer.isValid())
{
return;
}
texturer.createTextureCoords(m_oppositeFaultFacesTextureCoords.p());
}