#892 Fixed problem with one element only gray colors

This commit is contained in:
Jacob Støren 2016-09-28 09:27:28 +02:00
parent 3ca53b6103
commit 0d4e4508dc

View File

@ -368,7 +368,7 @@ void RivIntersectionBoxPartMgr::updatePartEffect()
//--------------------------------------------------------------------------------------------------
void RivIntersectionBoxPartMgr::appendNativeCrossSectionFacesToModel(cvf::ModelBasicList* model, cvf::Transform* scaleTransform)
{
if (m_intersectionBoxFaces.isNull())
if (m_intersectionBoxFaces.isNull() && m_intersectionBoxGridLines.isNull())
{
generatePartGeometry();
}
@ -385,7 +385,7 @@ void RivIntersectionBoxPartMgr::appendNativeCrossSectionFacesToModel(cvf::ModelB
//--------------------------------------------------------------------------------------------------
void RivIntersectionBoxPartMgr::appendMeshLinePartsToModel(cvf::ModelBasicList* model, cvf::Transform* scaleTransform)
{
if (m_intersectionBoxGridLines.isNull())
if (m_intersectionBoxFaces.isNull() && m_intersectionBoxGridLines.isNull())
{
generatePartGeometry();
}