Explorar o código

Merge pull request #50215 from Calinou/improve-node-configuration-warning-display

Format node configuration warnings as a bullet point list
Rémi Verschelde %!s(int64=4) %!d(string=hai) anos
pai
achega
f50a866335
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      scene/main/node.cpp

+ 3 - 1
scene/main/node.cpp

@@ -2493,7 +2493,9 @@ String Node::get_configuration_warnings_as_string() const {
 		if (i > 0) {
 			all_warnings += "\n\n";
 		}
-		all_warnings += String(warnings[i]);
+		// Format as a bullet point list to make multiple warnings easier to distinguish
+		// from each other.
+		all_warnings += String::utf8("•  ") + String(warnings[i]);
 	}
 	return all_warnings;
 }