diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-13 21:55:32 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-13 21:55:32 +0300 |
commit | b648d3e1109bb029e60e05a4f924797c27b0681f (patch) | |
tree | df80f9ed068ebc8c65d8852c90e8ad765b546e48 /editor/plugins/texture_region_editor_plugin.h | |
parent | 3bfffcc568d87342e867f95c35a4a19e09072189 (diff) | |
download | redot-engine-b648d3e1109bb029e60e05a4f924797c27b0681f.tar.gz |
Fix TextureRegionEditorPlugin popping up even when explicitly hidden
Fixes #27468
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.h')
-rw-r--r-- | editor/plugins/texture_region_editor_plugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/plugins/texture_region_editor_plugin.h b/editor/plugins/texture_region_editor_plugin.h index a49e0fb96c..4eb84ae176 100644 --- a/editor/plugins/texture_region_editor_plugin.h +++ b/editor/plugins/texture_region_editor_plugin.h @@ -145,10 +145,16 @@ public: class TextureRegionEditorPlugin : public EditorPlugin { GDCLASS(TextureRegionEditorPlugin, EditorPlugin); + bool manually_hidden; Button *texture_region_button; TextureRegionEditor *region_editor; EditorNode *editor; +protected: + static void _bind_methods(); + + void _editor_visiblity_changed(); + public: virtual String get_name() const { return "TextureRegion"; } bool has_main_screen() const { return false; } |