Ver Fonte

Merge pull request #68624 from AleCamara/bug-67235-gradient-slider

Fix clicking in gradient editor
Rémi Verschelde há 2 anos atrás
pai
commit
7dafe06e27
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      editor/plugins/gradient_editor.cpp

+ 1 - 0
editor/plugins/gradient_editor.cpp

@@ -203,6 +203,7 @@ void GradientEditor::gui_input(const Ref<InputEvent> &p_event) {
 		grabbed = _get_point_from_pos(mb->get_position().x);
 		_show_color_picker();
 		accept_event();
+		return;
 	}
 
 	// Delete point on right click.