Browse Source

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

krzycho 10 years ago
parent
commit
936b6e69f6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/gui/color_ramp_edit.cpp

+ 2 - 0
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();