diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-03-26 10:05:25 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-03-26 10:05:25 +0800 |
commit | 40d6a25ef5ac11a1f077aaeebc4464e0d452a817 (patch) | |
tree | a98e74972518fe3762f1420da802897471cb0cad | |
parent | 9343a8a9705cc43100f3e14af895f0842895a7a5 (diff) |
Check section existance before getting keys
-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 ddc363113c..17c51f0f85 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -194,6 +194,10 @@ void ImportDock::set_edit_multiple_paths(const Vector<String> &p_paths) { } } + if (!config->has_section("params")) { + continue; + } + List<String> keys; config->get_section_keys("params", &keys); |