From f43a0ef3270737d2b526480ecb0f1337ece9e041 Mon Sep 17 00:00:00 2001 From: David Saltares Date: Mon, 4 Sep 2017 21:52:44 +0100 Subject: Setting visibility on GridMap now works. Closes #907. Basically, `GridMap` wasn't reacting to the `NOTIFICATION_VISIBILITY_CHANGED` event. This reacts to such events and walks over the set of `Octants` and all of their `MultiMeshInstances` to set their visibility on the `VisualServer`. --- modules/gridmap/grid_map.h | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gridmap/grid_map.h') diff --git a/modules/gridmap/grid_map.h b/modules/gridmap/grid_map.h index 9e1d25068..eb1b21569 100644 --- a/modules/gridmap/grid_map.h +++ b/modules/gridmap/grid_map.h @@ -190,6 +190,7 @@ protected: void _get_property_list(List *p_list) const; void _notification(int p_what); + void _update_visibility(); static void _bind_methods(); public: -- cgit v1.2.3-70-g09d2