diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-09-15 08:52:47 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-09-15 08:59:43 -0300 |
commit | c0acaab1aaf9aa3a76c43db961cdf80df5fc7c97 (patch) | |
tree | 08b22e683ba357264d22507a73ef53967500a8a9 /editor | |
parent | 24e1039eb6fe32115e8d1a62a84965e9be19a2ed (diff) |
Fix keying integer and float values from inspector not being able to use bezier curves
Diffstat (limited to 'editor')
-rw-r--r-- | editor/animation_track_editor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index a163490cfb..2cc8510f30 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -3491,7 +3491,7 @@ void AnimationTrackEditor::_query_insert(const InsertData &p_id) { case Variant::QUAT: case Variant::PLANE: case Variant::COLOR: { - //good + // Valid. } break; default: { all_bezier = false; @@ -3954,7 +3954,9 @@ int AnimationTrackEditor::_confirm_insert(InsertData p_id, int p_last_track, boo bool created = false; if (p_id.track_idx < 0) { - if (p_create_beziers && (p_id.value.get_type() == Variant::VECTOR2 || + if (p_create_beziers && (p_id.value.get_type() == Variant::INT || + p_id.value.get_type() == Variant::REAL || + p_id.value.get_type() == Variant::VECTOR2 || p_id.value.get_type() == Variant::VECTOR3 || p_id.value.get_type() == Variant::QUAT || p_id.value.get_type() == Variant::COLOR || |