Skip to content

Commit e557456

Browse files
committed
Merge pull request #107766 from KoBeWi/buttonanza
Swap UID and path buttons
2 parents 595395c + 4b9e65d commit e557456

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

editor/editor_properties.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -719,19 +719,19 @@ EditorPropertyPath::EditorPropertyPath() {
719719
path->connect(SceneStringName(focus_exited), callable_mp(this, &EditorPropertyPath::_path_focus_exited));
720720
path->set_h_size_flags(SIZE_EXPAND_FILL);
721721

722-
path_edit = memnew(Button);
723-
path_edit->set_accessibility_name(TTRC("Edit"));
724-
path_hb->add_child(path_edit);
725-
add_focusable(path);
726-
path_edit->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_path_pressed));
727-
728722
toggle_uid = memnew(Button);
729723
toggle_uid->set_accessibility_name(TTRC("Toggle Display UID"));
730724
toggle_uid->set_tooltip_text(TTRC("Toggles displaying between path and UID.\nThe UID is the actual value of this property."));
731725
toggle_uid->set_pressed(false);
732726
path_hb->add_child(toggle_uid);
733727
add_focusable(toggle_uid);
734728
toggle_uid->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_toggle_uid_display));
729+
730+
path_edit = memnew(Button);
731+
path_edit->set_accessibility_name(TTRC("Edit"));
732+
path_hb->add_child(path_edit);
733+
add_focusable(path);
734+
path_edit->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_path_pressed));
735735
}
736736

737737
///////////////////// CLASS NAME /////////////////////////

editor/editor_properties.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ class EditorPropertyPath : public EditorProperty {
162162
bool global = false;
163163
bool save_mode = false;
164164
bool enable_uid = false;
165-
bool display_uid = true;
165+
bool display_uid = false;
166166

167167
EditorFileDialog *dialog = nullptr;
168168
LineEdit *path = nullptr;
169-
Button *path_edit = nullptr;
170169
Button *toggle_uid = nullptr;
170+
Button *path_edit = nullptr;
171171

172172
String _get_path_text(bool p_allow_uid = false);
173173

0 commit comments

Comments
 (0)