diff options
author | Tomer Keren <tomer.keren.dev@gmail.com> | 2020-10-16 14:04:24 +0300 |
---|---|---|
committer | Tomer Keren <tomer.keren.dev@gmail.com> | 2020-10-16 14:04:24 +0300 |
commit | fe52c6b0b7e21bbed1aaabe684714a9b78c23ba3 (patch) | |
tree | 83640ba0f566567b0a2cd149e2d4900f8eb28335 /modules | |
parent | 67135f246e9967bcdbf0f07ea5c8e0640f499d19 (diff) | |
download | redot-engine-fe52c6b0b7e21bbed1aaabe684714a9b78c23ba3.tar.gz |
Setting visibility on GridMap now works. Closes #41374.
Continuing the work from f43a0ef3270737d2b526480ecb0f1337ece9e041,
It seems the maps visibility was not actually set and a flase value was propogated to the meshes
Trying to set the maps visibility directly (Using `set_visibility` causes the map to no longer to recieve visibility notifications, instead this approach was chosen
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gridmap/grid_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index ccf1e49693..21fa83278b 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -706,7 +706,7 @@ void GridMap::_update_visibility() { Octant *octant = e->value(); for (int i = 0; i < octant->multimesh_instances.size(); i++) { const Octant::MultimeshInstance &mi = octant->multimesh_instances[i]; - RS::get_singleton()->instance_set_visible(mi.instance, is_visible()); + RS::get_singleton()->instance_set_visible(mi.instance, is_visible_in_tree()); } } } |