Browse Source

clear addon_name_to_plugin ater unload_editor_addons because of memdelete

Travis Lange 10 months ago
parent
commit
96ab05e89f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/editor_node.cpp

+ 2 - 0
editor/editor_node.cpp

@@ -3378,6 +3378,8 @@ void EditorNode::unload_editor_addons() {
 		remove_editor_plugin(E.value, false);
 		memdelete(E.value);
 	}
+
+	addon_name_to_plugin.clear();
 }
 
 void EditorNode::_discard_changes(const String &p_str) {