Selaa lähdekoodia

Merge pull request #77217 from hakro/disable-nodepath-auto-translate

Do not translate node name when assigned to an exported field
Rémi Verschelde 2 vuotta sitten
vanhempi
commit
9dfae0eb0f
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      editor/editor_properties.cpp

+ 1 - 0
editor/editor_properties.cpp

@@ -3710,6 +3710,7 @@ EditorPropertyNodePath::EditorPropertyNodePath() {
 	assign->set_flat(true);
 	assign->set_flat(true);
 	assign->set_h_size_flags(SIZE_EXPAND_FILL);
 	assign->set_h_size_flags(SIZE_EXPAND_FILL);
 	assign->set_clip_text(true);
 	assign->set_clip_text(true);
+	assign->set_auto_translate(false);
 	assign->connect("pressed", callable_mp(this, &EditorPropertyNodePath::_node_assign));
 	assign->connect("pressed", callable_mp(this, &EditorPropertyNodePath::_node_assign));
 	SET_DRAG_FORWARDING_CD(assign, EditorPropertyNodePath);
 	SET_DRAG_FORWARDING_CD(assign, EditorPropertyNodePath);
 	hbc->add_child(assign);
 	hbc->add_child(assign);