You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Setting visibility on GridMap now works. Closes #41374.
Continuing the work from f43a0ef327,
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
This commit is contained in:
@@ -706,7 +706,7 @@ void GridMap::_update_visibility() {
|
|||||||
Octant *octant = e->value();
|
Octant *octant = e->value();
|
||||||
for (int i = 0; i < octant->multimesh_instances.size(); i++) {
|
for (int i = 0; i < octant->multimesh_instances.size(); i++) {
|
||||||
const Octant::MultimeshInstance &mi = octant->multimesh_instances[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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user