MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / updateMaterial

Method updateMaterial

Engine/source/terrain/terrData.cpp:1049–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1047}
1048
1049void TerrainBlock::updateMaterial( U32 index, const String &name )
1050{
1051 if ( index >= mFile->mMaterials.size() )
1052 return;
1053
1054 mFile->mMaterials[ index ] = TerrainMaterial::findOrCreate( name );
1055 mFile->_initMaterialInstMapping();
1056
1057 mDetailsDirty = true;
1058 mLayerTexDirty = true;
1059}
1060
1061TerrainMaterial* TerrainBlock::getMaterial( U32 index ) const
1062{

Callers 1

terrainEditor.cppFile · 0.45

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected