mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 02:13:36 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue