소스 검색

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

krzycho 10 년 전
부모
커밋
936b6e69f6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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();