diff options
author | MCrafterzz <marcusaccounts@yahoo.se> | 2019-10-26 12:26:01 +0200 |
---|---|---|
committer | MCrafterzz <marcusaccounts@yahoo.se> | 2019-10-26 14:15:45 +0200 |
commit | cdce135540bddfc0738250f5f785a564066cb4a1 (patch) | |
tree | 527a805b50fa02b9676a53433e886ec84e341d6f /editor/plugins | |
parent | a8e007f055c69483c77945739f2c3218de5e5c44 (diff) |
Fixed #21527 (Show hint to right click when curve editor is empty)
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/curve_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index 9160920c50..727d92ba05 100644 --- a/editor/plugins/curve_editor_plugin.cpp +++ b/editor/plugins/curve_editor_plugin.cpp @@ -736,6 +736,9 @@ void CurveEditor::_draw() { if (_selected_point > 0 && _selected_point + 1 < curve.get_point_count()) { text_color.a *= 0.4; draw_string(font, Vector2(50, font_height), TTR("Hold Shift to edit tangents individually"), text_color); + } else if (curve.get_point_count() == 0) { + text_color.a *= 0.4; + draw_string(font, Vector2(50, font_height), TTR("Right click to add point"), text_color); } } |