summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorkrzycho <krzycho_s@tlen.pl>2015-06-11 05:18:13 +0200
committerkrzycho <krzycho_s@tlen.pl>2015-06-11 05:18:13 +0200
commit936b6e69f6c14437d7b86c4c6476ec43dd4606c7 (patch)
tree2e1ed31d454e543842d77eb1900e1252af2a4983 /scene
parent394276c45f4e1b256d6450a3ae7341368ace5fca (diff)
founded and fixed a bug that freezed godot when deleting while grabbing color in ColorRamp
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/color_ramp_edit.cpp2
1 files changed, 2 insertions, 0 deletions
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();