2
0
Эх сурвалжийг харах

clear addon_name_to_plugin ater unload_editor_addons because of memdelete

Travis Lange 1 жил өмнө
parent
commit
96ab05e89f

+ 2 - 0
editor/editor_node.cpp

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