re-enables prior functionality allowing folks to post-editor modify terrain cached textures.

This commit is contained in:
Azaezel 2015-04-07 19:19:38 -05:00 committed by Daniel Buckmaster
parent 462aeefb36
commit a879ad4dcf

View file

@ -288,7 +288,11 @@ bool TerrainBlock::_setBaseTexFormat(void *obj, const char *index, const char *d
terrain->mBaseTexFormat = (BaseTexFormat)eTable[i].mInt;
terrain->_updateMaterials();
terrain->_updateLayerTexture();
terrain->_updateBaseTexture(true);
// If the cached base texture is older that the terrain file or
// it doesn't exist then generate and cache it.
String baseCachePath = terrain->_getBaseTexCacheFileName();
if (Platform::compareModifiedTimes(baseCachePath, terrain->mTerrFileName) < 0)
terrain->_updateBaseTexture(true);
break;
}
}