founded and fixed a bug that freezed godot when deleting while grabbing color in ColorRamp

This commit is contained in:
krzycho 2015-06-11 05:18:13 +02:00
parent 394276c45f
commit 936b6e69f6

View file

@ -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();