diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-10-03 14:57:47 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-10-03 14:58:33 -0300 |
commit | fdd6950fc12689c841e37b975466635ba7ae9781 (patch) | |
tree | 44e26473b6b4ec9078fe1e9b4dbd9b7adbcc98ec | |
parent | 344a453bb8905f7c6f8f05d54469955eed9b2818 (diff) |
Fix lightmap baking crash, may close some issues but I am not sure.
-rw-r--r-- | scene/3d/baked_lightmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/baked_lightmap.cpp b/scene/3d/baked_lightmap.cpp index c58e318651..8f3fe8577e 100644 --- a/scene/3d/baked_lightmap.cpp +++ b/scene/3d/baked_lightmap.cpp @@ -365,7 +365,7 @@ BakedLightmap::BakeError BakedLightmap::bake(Node *p_from_node, bool p_create_vi { bake_bounds = AABB(-extents, extents * 2.0); int subdiv = nearest_power_of_2_templated(int(bake_bounds.get_longest_axis_size() / bake_cell_size)); - bake_bounds.size[bake_bounds.get_longest_axis_size()] = subdiv * bake_cell_size; + bake_bounds.size[bake_bounds.get_longest_axis_index()] = subdiv * bake_cell_size; bake_subdiv = nearest_shift(subdiv) + 1; capture_subdiv = bake_subdiv; |