You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix warnings found by Emscripten 3.1.10
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and `-Wliteral-range` warnings.
This commit is contained in:
@@ -592,7 +592,6 @@ void Voxelizer::_fixup_plot(int p_idx, int p_level) {
|
||||
bake_cells.write[p_idx].albedo[2] = 0;
|
||||
|
||||
float alpha_average = 0;
|
||||
int children_found = 0;
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
uint32_t child = bake_cells[p_idx].children[i];
|
||||
@@ -603,8 +602,6 @@ void Voxelizer::_fixup_plot(int p_idx, int p_level) {
|
||||
|
||||
_fixup_plot(child, p_level + 1);
|
||||
alpha_average += bake_cells[child].alpha;
|
||||
|
||||
children_found++;
|
||||
}
|
||||
|
||||
bake_cells.write[p_idx].alpha = alpha_average / 8.0;
|
||||
|
||||
Reference in New Issue
Block a user