diff options
author | David Saltares <david.saltares@gmail.com> | 2017-09-04 21:52:44 +0100 |
---|---|---|
committer | David Saltares <david.saltares@gmail.com> | 2017-09-05 22:44:19 +0100 |
commit | f43a0ef3270737d2b526480ecb0f1337ece9e041 (patch) | |
tree | 85bb60cbb7ba7c0287796a452a6753052b237dda /modules/gridmap/grid_map.h | |
parent | 29db531fc8360b1e6d5e23008b208517b6d8c627 (diff) | |
download | redot-engine-f43a0ef3270737d2b526480ecb0f1337ece9e041.tar.gz |
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`.
Diffstat (limited to 'modules/gridmap/grid_map.h')
-rw-r--r-- | modules/gridmap/grid_map.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map.h b/modules/gridmap/grid_map.h index 9e1d250680..eb1b215696 100644 --- a/modules/gridmap/grid_map.h +++ b/modules/gridmap/grid_map.h @@ -190,6 +190,7 @@ protected: void _get_property_list(List<PropertyInfo> *p_list) const; void _notification(int p_what); + void _update_visibility(); static void _bind_methods(); public: |