aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/tile_map.h
diff options
context:
space:
mode:
authorShyRed2018-03-11 12:24:50 +0100
committerShyRed2018-03-11 12:24:50 +0100
commit67f4944a21487dce92746bdb716303a7860b081c (patch)
treef03e349c3a265e8dc1d5ea2525ef4afa8b553f57 /scene/2d/tile_map.h
parenteceba5aa6a36521c878cf976845123e820d27161 (diff)
downloadgodot-67f4944a21487dce92746bdb716303a7860b081c.tar.gz
godot-67f4944a21487dce92746bdb716303a7860b081c.tar.zst
godot-67f4944a21487dce92746bdb716303a7860b081c.zip
Update TileMap when its TileSet changes
Make TileMap monitor its TileSet for changes and emit a signal when the TileSet changes. This makes the editor update and show the updated version of the TileSet.
Diffstat (limited to 'scene/2d/tile_map.h')
-rw-r--r--scene/2d/tile_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h
index 973e527b4..104842d52 100644
--- a/scene/2d/tile_map.h
+++ b/scene/2d/tile_map.h
@@ -217,6 +217,8 @@ protected:
void _notification(int p_what);
static void _bind_methods();
+ virtual void _changed_callback(Object *p_changed, const char *p_prop);
+
public:
enum {
INVALID_CELL = -1