From fafbb43bf99e66551a621b3a1283bf929d11cce1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 8 Jul 2005 19:45:18 +0000 Subject: [PATCH] From Jason Beverage, fix to setting of grey band. --- src/osgTerrain/DataSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgTerrain/DataSet.cpp b/src/osgTerrain/DataSet.cpp index 08235013b..4437e7a4e 100644 --- a/src/osgTerrain/DataSet.cpp +++ b/src/osgTerrain/DataSet.cpp @@ -830,7 +830,7 @@ void DataSet::SourceData::readHeightField(DestinationData& destination) else if (band->GetColorInterpretation()==GCI_GreenBand) bandGreen = band; else if (band->GetColorInterpretation()==GCI_BlueBand) bandBlue = band; else if (band->GetColorInterpretation()==GCI_AlphaBand) bandAlpha = band; - else bandGray = band; + else if (bandGray == 0) bandGray = band; }