mirror of
https://github.com/godotengine/godot.git
synced 2024-11-30 08:05:47 +00:00
Setting visibility on GridMap now works. Closes #41374.
Continuing the work fromf43a0ef327
, 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 (cherry picked from commitfe52c6b0b7
)
This commit is contained in:
parent
a5f98e915c
commit
3e4816efbd
@ -735,7 +735,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];
|
||||
VS::get_singleton()->instance_set_visible(mi.instance, is_visible());
|
||||
VS::get_singleton()->instance_set_visible(mi.instance, is_visible_in_tree());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user