From 936b6e69f6c14437d7b86c4c6476ec43dd4606c7 Mon Sep 17 00:00:00 2001 From: krzycho Date: Thu, 11 Jun 2015 05:18:13 +0200 Subject: founded and fixed a bug that freezed godot when deleting while grabbing color in ColorRamp --- scene/gui/color_ramp_edit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/gui') diff --git a/scene/gui/color_ramp_edit.cpp b/scene/gui/color_ramp_edit.cpp index c39893ac97..14a48fe3d3 100644 --- a/scene/gui/color_ramp_edit.cpp +++ b/scene/gui/color_ramp_edit.cpp @@ -48,6 +48,7 @@ void ColorRampEdit::_input_event(const InputEvent& p_event) { points.remove(grabbed); grabbed=-1; + grabbing=false; update(); emit_signal("ramp_changed"); accept_event(); @@ -67,6 +68,7 @@ void ColorRampEdit::_input_event(const InputEvent& p_event) { { points.remove(grabbed); grabbed=-1; + grabbing=false; update(); emit_signal("ramp_changed"); accept_event(); -- cgit v1.2.3