mirror of
https://github.com/Relintai/terraman.git
synced 2025-04-25 21:45:00 +02:00
Also mention 5 suggested material to TerrainLibrary::prop_material_lod_get's error message.
This commit is contained in:
parent
27e42b9087
commit
0bb45020b2
@ -327,7 +327,7 @@ Ref<Material> TerrainLibrary::prop_material_get(const int index) {
|
||||
}
|
||||
|
||||
Ref<Material> TerrainLibrary::prop_material_lod_get(const int index) {
|
||||
ERR_FAIL_COND_V_MSG(_prop_materials.size() == 0, Ref<Material>(), "Error! You should to add at least one material to TerrainLibrary!");
|
||||
ERR_FAIL_COND_V_MSG(_prop_materials.size() == 0, Ref<Material>(), "Error! You should to add at least one prop material to TerrainLibrary! (By default it will use up to 5. See VoxelWorldDefault::_create_chunk().)");
|
||||
|
||||
if (index < 0) {
|
||||
return _prop_materials[0];
|
||||
|
Loading…
Reference in New Issue
Block a user