diff options
author | mostafahassan <habib_musse@hotmail.com> | 2015-03-31 22:49:11 +0200 |
---|---|---|
committer | mostafahassan <habib_musse@hotmail.com> | 2015-03-31 22:49:11 +0200 |
commit | 78d734873d27d855e01d574a6dd3a6380b2fa5ec (patch) | |
tree | 3217531e7cb40053090072fa1f7c2cbec42f3a70 /tools/editor/plugins | |
parent | ec1aea5b3b85ec49723204796446a022f1c05ec2 (diff) |
Fixed crash when trying to add keypoints and deleting them while holding mouse button down.
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r-- | tools/editor/plugins/shader_graph_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/shader_graph_editor_plugin.cpp b/tools/editor/plugins/shader_graph_editor_plugin.cpp index 508e8b4cba..e829c06e6f 100644 --- a/tools/editor/plugins/shader_graph_editor_plugin.cpp +++ b/tools/editor/plugins/shader_graph_editor_plugin.cpp @@ -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; |