diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-26 09:20:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 09:20:36 +0100 |
commit | 6bb1eb821286d23eaa518f7d12ad5a9d8aabdd7e (patch) | |
tree | 3b2467d4afa899b429fd0ed195562f60b05071fc /editor/import_dock.cpp | |
parent | c6b9ceadf2d2c220acdb4081e488c13de9d5f52c (diff) | |
parent | 40d6a25ef5ac11a1f077aaeebc4464e0d452a817 (diff) |
Merge pull request #47374 from timothyqiu/check-section
Check section existance before getting keys
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 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); |