founded and fixed a bug that freezed godot when deleting while grabbing color in ColorRamp
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user