diff options
author | toger5 <toger5@hotmail.de> | 2017-05-21 19:11:11 -0700 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2017-05-21 19:11:11 -0700 |
commit | 955615a3c317218a087a8af9396128e50f61662b (patch) | |
tree | 341f32bffbfc38d2b959fedb1d056858d89af62f /scene/gui | |
parent | 5b3709d3096df737b8bb2344446be818b0389bfe (diff) |
fixed crash when dragging to change color in color picker
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/color_picker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 67d440ca67..662ce63946 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -361,7 +361,7 @@ void ColorPicker::_w_input(const Ref<InputEvent> &ev) { if (!changing_color) return; - float y = CLAMP((float)bev->get_pos().y, 0, 256); + float y = CLAMP((float)mev->get_pos().y, 0, 256); h = 1.0 - y / 256.0; color.set_hsv(h, s, v, color.a); last_hsv = color; |