소스 검색

Merge pull request #62816 from akien-mga/feature-list-comma-fix

Rémi Verschelde 3 년 전
부모
커밋
664d8cd8ab
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      editor/project_export.cpp

+ 4 - 3
editor/project_export.cpp

@@ -366,16 +366,17 @@ void ProjectExportDialog::_update_feature_list() {
 	}
 	}
 
 
 	custom_feature_display->clear();
 	custom_feature_display->clear();
+	String text;
 	bool first = true;
 	bool first = true;
 	for (const String &E : fset) {
 	for (const String &E : fset) {
-		String f = E;
 		if (!first) {
 		if (!first) {
-			f += ", ";
+			text += ", ";
 		} else {
 		} else {
 			first = false;
 			first = false;
 		}
 		}
-		custom_feature_display->add_text(f);
+		text += E;
 	}
 	}
+	custom_feature_display->add_text(text);
 }
 }
 
 
 void ProjectExportDialog::_custom_features_changed(const String &p_text) {
 void ProjectExportDialog::_custom_features_changed(const String &p_text) {