ソースを参照

Do not translate node name when assigned to an exported field

(cherry picked from commit f2383b7c1931aa89b0aad7c1b401b0bd44b1489a)
Hakim 2 年 前
コミット
3f98539361
1 ファイル変更1 行追加0 行削除
  1. 1 0
      editor/editor_properties.cpp

+ 1 - 0
editor/editor_properties.cpp

@@ -3703,6 +3703,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);