Merge pull request #5549 from TheHX/fix-issue-4608

Fix TreeItem range editing by dragging on the inspector
This commit is contained in:
Rémi Verschelde 2016-07-04 23:38:29 +02:00 committed by GitHub
commit 66856a11d7

View file

@ -2279,7 +2279,7 @@ void Tree::_input_event(InputEvent p_event) {
update();
}
if (pressing_for_editor && popup_edited_item && popup_edited_item->get_cell_mode(popup_edited_item_col)==TreeItem::CELL_MODE_RANGE) {
if (pressing_for_editor && popup_edited_item && (popup_edited_item->get_cell_mode(popup_edited_item_col)==TreeItem::CELL_MODE_RANGE || popup_edited_item->get_cell_mode(popup_edited_item_col)==TreeItem::CELL_MODE_RANGE_EXPRESSION)) {
//range drag
if (!range_drag_enabled) {