summaryrefslogtreecommitdiffstats
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index f7d695bf31..f25e178d23 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1214,6 +1214,11 @@ String Node::validate_child_name(Node *p_child) {
_generate_serial_child_name(p_child, name);
return name;
}
+
+String Node::prevalidate_child_name(Node *p_child, StringName p_name) {
+ _generate_serial_child_name(p_child, p_name);
+ return p_name;
+}
#endif
String Node::adjust_name_casing(const String &p_name) {
@@ -3131,20 +3136,6 @@ PackedStringArray Node::get_configuration_warnings() const {
return ret;
}
-String Node::get_configuration_warnings_as_string() const {
- PackedStringArray warnings = get_configuration_warnings();
- String all_warnings;
- for (int i = 0; i < warnings.size(); i++) {
- if (i > 0) {
- all_warnings += "\n\n";
- }
- // Format as a bullet point list to make multiple warnings easier to distinguish
- // from each other.
- all_warnings += String::utf8("• ") + warnings[i];
- }
- return all_warnings;
-}
-
void Node::update_configuration_warnings() {
ERR_THREAD_GUARD
#ifdef TOOLS_ENABLED