diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-31 15:18:03 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-31 15:18:03 -0300 |
commit | d1a799f74412a0ae16b6023a927c1b7b3c052f96 (patch) | |
tree | efa75da9a1bf6ab0745a2733d78be52aac9daa79 /scene/gui | |
parent | bc2b1696e6bbe2cd50c65be81ee2bed71ea7cf9e (diff) |
-fix range limit issue in Particles2D, closes #2411
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tree.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 585f3a8936..ca473565ca 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2128,8 +2128,7 @@ void Tree::_input_event(InputEvent p_event) { float diff_y = -b.relative_y; diff_y=Math::pow(ABS(diff_y),1.8)*SGN(diff_y); diff_y*=0.1; - range_drag_base=CLAMP(range_drag_base + c.step * diff_y, c.min, c.max); - + range_drag_base=CLAMP(range_drag_base + c.step * diff_y, c.min, c.max); popup_edited_item->set_range(popup_edited_item_col,range_drag_base); item_edited(popup_edited_item_col,popup_edited_item); |