diff options
| author | JFonS | 2018-02-12 22:22:45 +0100 |
|---|---|---|
| committer | JFonS | 2018-02-14 16:48:13 +0100 |
| commit | f68594a5251814e950a6f22ecce09333f44274d6 (patch) | |
| tree | f322771601bb6da6ea70f15396a5d8e745111588 /scene/gui/gradient_edit.cpp | |
| parent | f13d0344853edda03d56e44365a90ad4eed22883 (diff) | |
| download | godot-f68594a5251814e950a6f22ecce09333f44274d6.tar.gz godot-f68594a5251814e950a6f22ecce09333f44274d6.tar.zst godot-f68594a5251814e950a6f22ecce09333f44274d6.zip | |
Diffstat (limited to 'scene/gui/gradient_edit.cpp')
| -rw-r--r-- | scene/gui/gradient_edit.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/gradient_edit.cpp b/scene/gui/gradient_edit.cpp index 398503971..9fc8e98a7 100644 --- a/scene/gui/gradient_edit.cpp +++ b/scene/gui/gradient_edit.cpp @@ -367,6 +367,13 @@ void GradientEdit::_notification(int p_what) { draw_line(Vector2(-1, -1), Vector2(-1, h + 1), Color(1, 1, 1, 0.6)); } } + + if (p_what == NOTIFICATION_VISIBILITY_CHANGED) { + + if (!is_visible()) { + grabbing = false; + } + } } void GradientEdit::_draw_checker(int x, int y, int w, int h) { |
