diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2020-10-03 04:36:07 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-10-03 04:36:07 -0400 |
commit | 3163611f0c855feaf3bddad3afe9afd6fd3cc2c6 (patch) | |
tree | cb70e8a6bab0dccbb82c7605cac43f139d50d5e8 /editor | |
parent | 9b1c9cef17ef06e5ae80309189464ca6afe7e551 (diff) |
Don't write global script class information if there is none
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_data.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index 5118ccacad..7537c86676 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -936,7 +936,11 @@ void EditorData::script_class_save_icon_paths() { } } - ProjectSettings::get_singleton()->set("_global_script_class_icons", d); + if (d.empty()) { + ProjectSettings::get_singleton()->clear("_global_script_class_icons"); + } else { + ProjectSettings::get_singleton()->set("_global_script_class_icons", d); + } ProjectSettings::get_singleton()->save(); } |