founded and fixed a bug that freezed godot when deleting while grabbing color in ColorRamp
This commit is contained in:
parent
394276c45f
commit
936b6e69f6
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue