diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-07-15 23:24:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-07-15 23:24:37 -0300 |
commit | 3da3a36034bff7988e9ade868d06cec7977ca8af (patch) | |
tree | dc876eb46194d261eb6a8b4a06f685a748e7819b /modules/gridmap | |
parent | 5dd7c3b6ab3e50e3deeb4ce1c7eebf7559da1736 (diff) |
Many fixes to improve GI Probe quality
Diffstat (limited to 'modules/gridmap')
-rw-r--r-- | modules/gridmap/grid_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index 9d3da8227c..8c2c2ea345 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -380,6 +380,7 @@ void GridMap::set_cell_item(int p_x, int p_y, int p_z, int p_item, int p_rot) { ii.multimesh->set_mesh(ii.mesh); ii.multimesh_instance = VS::get_singleton()->instance_create(); VS::get_singleton()->instance_set_base(ii.multimesh_instance, ii.multimesh->get_rid()); + VS::get_singleton()->instance_geometry_set_flag(ii.multimesh_instance, VS::INSTANCE_FLAG_USE_BAKED_LIGHT, true); g.items[p_item] = ii; } |