You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Prevent crash in specific situation of removing a plugin, fixes #5019
This commit is contained in:
@@ -3089,6 +3089,7 @@ void EditorNode::set_addon_plugin_enabled(const String& p_addon,bool p_enabled)
|
|||||||
if (!p_enabled) {
|
if (!p_enabled) {
|
||||||
|
|
||||||
EditorPlugin *addon = plugin_addons[p_addon];
|
EditorPlugin *addon = plugin_addons[p_addon];
|
||||||
|
editor_data.remove_editor_plugin( addon );
|
||||||
memdelete(addon); //bye
|
memdelete(addon); //bye
|
||||||
plugin_addons.erase(p_addon);
|
plugin_addons.erase(p_addon);
|
||||||
_update_addon_config();
|
_update_addon_config();
|
||||||
|
|||||||
Reference in New Issue
Block a user