浏览代码

clear addon_name_to_plugin ater unload_editor_addons because of memdelete

Travis Lange 1 年之前
父节点
当前提交
96ab05e89f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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) {