Make conversions from NodePath to String explicit.

This commit is contained in:
Lukas Tenbrink
2025-06-11 16:19:23 +02:00
parent 51b0379e55
commit e2931a5c19
39 changed files with 99 additions and 99 deletions

View File

@@ -78,7 +78,7 @@ public:
return data->hash_cache;
}
operator String() const;
explicit operator String() const;
bool is_empty() const;
bool operator==(const NodePath &p_path) const;

View File

@@ -1642,7 +1642,7 @@ String Variant::stringify(int recursion_count) const {
case STRING_NAME:
return operator StringName();
case NODE_PATH:
return operator NodePath();
return String(operator NodePath());
case COLOR:
return String(operator Color());
case DICTIONARY: {