浏览代码

Merge branch 'alpha40Terrainfix' of https://github.com/Azaezel/Torque3D into Preview4_0

Areloch 6 年之前
父节点
当前提交
6d2699cb1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/terrain/terrFile.cpp

+ 1 - 1
Engine/source/terrain/terrFile.cpp

@@ -699,7 +699,7 @@ void TerrainFile::import(  const GBitmap &heightMap,
 
    // Convert the height map to heights.
    U16 *oBits = mHeightMap.address();
-   if ( heightMap.getFormat() == GFXFormatR5G6B5 )
+   if ( heightMap.getFormat() == GFXFormatL16)
    {
       const F32 toFixedPoint = ( 1.0f / (F32)U16_MAX ) * floatToFixed( heightScale );
       const U16 *iBits = (const U16*)heightMap.getBits();