Merge pull request #46942 from ray90514/debug
Fix Node can not be reselected
This commit is contained in:
commit
61155b5e29
1 changed files with 2 additions and 1 deletions
|
@ -626,7 +626,7 @@ void SceneTreeEditor::_selected_changed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneTreeEditor::_deselect_items() {
|
void SceneTreeEditor::_deselect_items() {
|
||||||
// Clear currently elected items in scene tree dock.
|
// Clear currently selected items in scene tree dock.
|
||||||
if (editor_selection) {
|
if (editor_selection) {
|
||||||
editor_selection->clear();
|
editor_selection->clear();
|
||||||
emit_signal("node_changed");
|
emit_signal("node_changed");
|
||||||
|
@ -1172,6 +1172,7 @@ SceneTreeEditor::SceneTreeEditor(bool p_label, bool p_can_rename, bool p_can_ope
|
||||||
tree->set_anchor(SIDE_BOTTOM, ANCHOR_END);
|
tree->set_anchor(SIDE_BOTTOM, ANCHOR_END);
|
||||||
tree->set_begin(Point2(0, p_label ? 18 : 0));
|
tree->set_begin(Point2(0, p_label ? 18 : 0));
|
||||||
tree->set_end(Point2(0, 0));
|
tree->set_end(Point2(0, 0));
|
||||||
|
tree->set_allow_reselect(true);
|
||||||
tree->add_theme_constant_override("button_margin", 0);
|
tree->add_theme_constant_override("button_margin", 0);
|
||||||
|
|
||||||
add_child(tree);
|
add_child(tree);
|
||||||
|
|
Loading…
Reference in a new issue