浏览代码

Fix crash on exit with shader editor

kit 1 年之前
父节点
当前提交
da55b6a01c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/editor_node.cpp

+ 2 - 0
editor/editor_node.cpp

@@ -679,6 +679,8 @@ void EditorNode::_notification(int p_what) {
 		} break;
 		} break;
 
 
 		case NOTIFICATION_EXIT_TREE: {
 		case NOTIFICATION_EXIT_TREE: {
+			singleton->active_plugins.clear();
+
 			if (progress_dialog) {
 			if (progress_dialog) {
 				progress_dialog->queue_free();
 				progress_dialog->queue_free();
 			}
 			}