mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 04:46:48 +01:00
Fix an another shadowed variable warning.
This commit is contained in:
parent
8300dbee0f
commit
089b16f281
@ -832,14 +832,6 @@ void VoxelTerrainJob::step_type_bake_texture() {
|
||||
|
||||
VisualServer::get_singleton()->mesh_add_surface_from_arrays(mesh_rid, VisualServer::PRIMITIVE_TRIANGLES, temp_mesh_arr);
|
||||
|
||||
Ref<Material> lmat;
|
||||
|
||||
if (chunk->material_cache_key_has()) {
|
||||
lmat = chunk->get_library()->material_cache_get(_chunk->material_cache_key_get())->material_lod_get(_current_mesh);
|
||||
} else {
|
||||
lmat = chunk->get_library()->material_lod_get(_current_mesh);
|
||||
}
|
||||
|
||||
if (lmat.is_valid()) {
|
||||
VisualServer::get_singleton()->mesh_surface_set_material(mesh_rid, 0, lmat->get_rid());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user