mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
re-enables prior functionality allowing folks to post-editor modify terrain cached textures.
This commit is contained in:
parent
462aeefb36
commit
a879ad4dcf
1 changed files with 5 additions and 1 deletions
|
|
@ -288,7 +288,11 @@ bool TerrainBlock::_setBaseTexFormat(void *obj, const char *index, const char *d
|
||||||
terrain->mBaseTexFormat = (BaseTexFormat)eTable[i].mInt;
|
terrain->mBaseTexFormat = (BaseTexFormat)eTable[i].mInt;
|
||||||
terrain->_updateMaterials();
|
terrain->_updateMaterials();
|
||||||
terrain->_updateLayerTexture();
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue