mirror of
https://github.com/godotengine/godot
synced 2024-09-05 19:49:39 +00:00
Fix warning in MSVC
This commit is contained in:
parent
13a0d6e9b2
commit
fe8c217b7c
|
@ -357,7 +357,7 @@ void LightmapperRD::_create_acceleration_structures(RenderingDevice *rd, Size2i
|
||||||
|
|
||||||
for (int m_i = 0; m_i < mesh_instances.size(); m_i++) {
|
for (int m_i = 0; m_i < mesh_instances.size(); m_i++) {
|
||||||
if (p_step_function) {
|
if (p_step_function) {
|
||||||
float p = float(m_i + 1) / mesh_instances.size() * 0.1;
|
float p = float(m_i + 1) / MAX(1, mesh_instances.size()) * 0.1;
|
||||||
p_step_function(0.3 + p, vformat(RTR("Plotting mesh into acceleration structure %d/%d"), m_i + 1, mesh_instances.size()), p_bake_userdata, false);
|
p_step_function(0.3 + p, vformat(RTR("Plotting mesh into acceleration structure %d/%d"), m_i + 1, mesh_instances.size()), p_bake_userdata, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue