You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixed crash when trying to add keypoints and deleting them while holding mouse button down.
This commit is contained in:
@@ -376,7 +376,7 @@ void GraphCurveMapEdit::_input_event(const InputEvent& p_event) {
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_event.type==InputEvent::MOUSE_MOTION && grabbing) {
|
if (p_event.type==InputEvent::MOUSE_MOTION && grabbing && grabbed != -1) {
|
||||||
|
|
||||||
Point2 p = Vector2(p_event.mouse_button.x,p_event.mouse_button.y)/get_size();
|
Point2 p = Vector2(p_event.mouse_button.x,p_event.mouse_button.y)/get_size();
|
||||||
p.y=1.0-p.y;
|
p.y=1.0-p.y;
|
||||||
|
|||||||
Reference in New Issue
Block a user