Merge pull request #32146 from YeldhamDev/key_bezier_int_real

Fix keying integer and float values from inspector not being able to use bezier curves
This commit is contained in:
Rémi Verschelde 2019-09-20 17:35:03 +02:00 committed by GitHub
commit 9137a045ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -3492,7 +3492,7 @@ void AnimationTrackEditor::_query_insert(const InsertData &p_id) {
case Variant::QUAT: case Variant::QUAT:
case Variant::PLANE: case Variant::PLANE:
case Variant::COLOR: { case Variant::COLOR: {
//good // Valid.
} break; } break;
default: { default: {
all_bezier = false; all_bezier = false;
@ -3955,7 +3955,9 @@ int AnimationTrackEditor::_confirm_insert(InsertData p_id, int p_last_track, boo
bool created = false; bool created = false;
if (p_id.track_idx < 0) { 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::VECTOR3 ||
p_id.value.get_type() == Variant::QUAT || p_id.value.get_type() == Variant::QUAT ||
p_id.value.get_type() == Variant::COLOR || p_id.value.get_type() == Variant::COLOR ||