You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Merge pull request #80529 from KoBeWi/unfortunate_fix_is_unfortunate🤦♂️
Fix TileSet not disappearing on deselecting TileMap
This commit is contained in:
@@ -118,7 +118,7 @@ class TileMapEditorPlugin : public EditorPlugin {
|
||||
ObjectID tile_map_id;
|
||||
|
||||
bool tile_map_changed_needs_update = false;
|
||||
ObjectID edited_tileset;
|
||||
ObjectID edited_tileset; // The TileSet associated with the TileMap.
|
||||
|
||||
void _tile_map_changed();
|
||||
void _update_tile_map();
|
||||
@@ -147,11 +147,15 @@ class TileSetEditorPlugin : public EditorPlugin {
|
||||
TileSetEditor *editor = nullptr;
|
||||
Button *button = nullptr;
|
||||
|
||||
ObjectID edited_tileset;
|
||||
|
||||
public:
|
||||
virtual void edit(Object *p_object) override;
|
||||
virtual bool handles(Object *p_object) const override;
|
||||
virtual void make_visible(bool p_visible) override;
|
||||
|
||||
ObjectID get_edited_tileset() const;
|
||||
|
||||
TileSetEditorPlugin();
|
||||
~TileSetEditorPlugin();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user