mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Make conversions from NodePath to String explicit.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user