summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-07-15 23:24:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-07-15 23:24:37 -0300
commit3da3a36034bff7988e9ade868d06cec7977ca8af (patch)
treedc876eb46194d261eb6a8b4a06f685a748e7819b /modules
parent5dd7c3b6ab3e50e3deeb4ce1c7eebf7559da1736 (diff)
Many fixes to improve GI Probe quality
Diffstat (limited to 'modules')
-rw-r--r--modules/gridmap/grid_map.cpp1
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;
}