mirror of
https://github.com/godotengine/godot.git
synced 2025-01-21 17:30:58 +00:00
Fixed crash when trying to add keypoints and deleting them while holding mouse button down.
This commit is contained in:
parent
ec1aea5b3b
commit
78d734873d
@ -376,7 +376,7 @@ void GraphCurveMapEdit::_input_event(const InputEvent& p_event) {
|
||||
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();
|
||||
p.y=1.0-p.y;
|
||||
|
Loading…
Reference in New Issue
Block a user