浏览代码

Merge pull request #80967 from aaronfranke/fix-enter-tree

Fix redundant enter tree notification in project export texture format
Yuri Sizov 2 年之前
父节点
当前提交
6f90b23702
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      editor/export/project_export.cpp

+ 0 - 1
editor/export/project_export.cpp

@@ -65,7 +65,6 @@ void ProjectExportTextureFormatError::_bind_methods() {
 
 
 void ProjectExportTextureFormatError::_notification(int p_what) {
 void ProjectExportTextureFormatError::_notification(int p_what) {
 	switch (p_what) {
 	switch (p_what) {
-		case NOTIFICATION_ENTER_TREE:
 		case NOTIFICATION_THEME_CHANGED: {
 		case NOTIFICATION_THEME_CHANGED: {
 			texture_format_error_label->add_theme_color_override("font_color", get_theme_color(SNAME("error_color"), SNAME("Editor")));
 			texture_format_error_label->add_theme_color_override("font_color", get_theme_color(SNAME("error_color"), SNAME("Editor")));
 		} break;
 		} break;