1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Fix a few property warnings on Globals access

Hand-picked from 515f92d03b.
This commit is contained in:
Rémi Verschelde
2017-05-26 18:46:59 +02:00
parent 9b1ee4cd66
commit fec8e2549c
3 changed files with 6 additions and 3 deletions

View File

@@ -6313,7 +6313,10 @@ EditorNode::EditorNode() {
{
_initializing_addons = true;
Vector<String> addons = Globals::get_singleton()->get("editor_plugins/enabled");
Vector<String> addons;
if (Globals::get_singleton()->has("editor_plugins/enabled")) {
addons = Globals::get_singleton()->get("editor_plugins/enabled");
}
for (int i = 0; i < addons.size(); i++) {
set_addon_plugin_enabled(addons[i], true);