diff options
| author | mostafahassan | 2015-03-31 22:49:11 +0200 |
|---|---|---|
| committer | mostafahassan | 2015-03-31 22:49:11 +0200 |
| commit | 78d734873d27d855e01d574a6dd3a6380b2fa5ec (patch) | |
| tree | 3217531e7cb40053090072fa1f7c2cbec42f3a70 /tools/editor/plugins/shader_graph_editor_plugin.cpp | |
| parent | ec1aea5b3b85ec49723204796446a022f1c05ec2 (diff) | |
| download | godot-78d734873d27d855e01d574a6dd3a6380b2fa5ec.tar.gz godot-78d734873d27d855e01d574a6dd3a6380b2fa5ec.tar.zst godot-78d734873d27d855e01d574a6dd3a6380b2fa5ec.zip | |
Diffstat (limited to 'tools/editor/plugins/shader_graph_editor_plugin.cpp')
| -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 508e8b4cb..e829c06e6 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; |
