1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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

@@ -166,7 +166,7 @@ void EditorPropertyRootMotion::_node_clear() {
void EditorPropertyRootMotion::update_property() {
NodePath p = get_edited_property_value();
assign->set_tooltip_text(p);
assign->set_tooltip_text(String(p));
if (p == NodePath()) {
assign->set_button_icon(Ref<Texture2D>());
assign->set_text(TTR("Assign..."));
@@ -175,7 +175,7 @@ void EditorPropertyRootMotion::update_property() {
}
assign->set_button_icon(Ref<Texture2D>());
assign->set_text(p);
assign->set_text(String(p));
}
void EditorPropertyRootMotion::setup(const NodePath &p_base_hint) {