Also mention 5 suggested material to TerrainLibrary::prop_material_lod_get's error message.

This commit is contained in:
Relintai 2022-02-09 10:18:52 +01:00
parent 27e42b9087
commit 0bb45020b2

View File

@ -327,7 +327,7 @@ Ref<Material> TerrainLibrary::prop_material_get(const int index) {
} }
Ref<Material> TerrainLibrary::prop_material_lod_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) { if (index < 0) {
return _prop_materials[0]; return _prop_materials[0];