summaryrefslogtreecommitdiffstats
path: root/editor/import_dock.cpp
diff options
context:
space:
mode:
authortrollodel <33117082+trollodel@users.noreply.github.com>2021-11-17 21:08:55 +0100
committertrollodel <33117082+trollodel@users.noreply.github.com>2022-01-20 20:13:26 +0100
commitaa1102fc536bd7b3a2cff703d79713c454af7e6c (patch)
treedbe06bedc829e44e5186ea36a70386e8209b2666 /editor/import_dock.cpp
parent8fc0dd9997c80059ec2b273e7004daa458d370ee (diff)
downloadredot-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.cpp4
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);
}