소스 검색

Merge pull request #96000 from kerstop/deadzone_slider_fix

Fix deadzone slider not working correctly
Rémi Verschelde 1 년 전
부모
커밋
168676a7c5
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      scene/gui/tree.cpp

+ 2 - 4
scene/gui/tree.cpp

@@ -3274,12 +3274,10 @@ void Tree::value_editor_changed(double p_value) {
 		return;
 		return;
 	}
 	}
 
 
-	TreeItem::Cell &c = popup_edited_item->cells.write[popup_edited_item_col];
-	c.val = p_value;
+	const TreeItem::Cell &c = popup_edited_item->cells[popup_edited_item_col];
 
 
-	line_editor->set_text(String::num(c.val, Math::range_step_decimals(c.step)));
+	line_editor->set_text(String::num(p_value, Math::range_step_decimals(c.step)));
 
 
-	item_edited(popup_edited_item_col, popup_edited_item);
 	queue_redraw();
 	queue_redraw();
 }
 }