diff options
author | trollodel <33117082+trollodel@users.noreply.github.com> | 2021-11-17 21:08:55 +0100 |
---|---|---|
committer | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-01-20 20:13:26 +0100 |
commit | aa1102fc536bd7b3a2cff703d79713c454af7e6c (patch) | |
tree | dbe06bedc829e44e5186ea36a70386e8209b2666 /editor/import_dock.cpp | |
parent | 8fc0dd9997c80059ec2b273e7004daa458d370ee (diff) | |
download | redot-engine-aa1102fc536bd7b3a2cff703d79713c454af7e6c.tar.gz |
Store panels and docks singletons in their own classes
Diffstat (limited to 'editor/import_dock.cpp')
-rw-r--r-- | editor/import_dock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 10654cfe43..419688fd9f 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -91,6 +91,8 @@ public: } }; +ImportDock *ImportDock::singleton = nullptr; + void ImportDock::set_edit_path(const String &p_path) { Ref<ConfigFile> config; config.instantiate(); @@ -606,6 +608,7 @@ void ImportDock::initialize_import_options() const { } ImportDock::ImportDock() { + singleton = this; set_name("Import"); content = memnew(VBoxContainer); @@ -687,5 +690,6 @@ ImportDock::ImportDock() { } ImportDock::~ImportDock() { + singleton = nullptr; memdelete(params); } |