diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index c27417f0375..54d22f0ad71 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -201,7 +201,7 @@ bool AnimationTrackKeyEdit::_set(const StringName &p_name, const Variant &p_valu if (t != args[idx].get_type()) { Callable::CallError err; - if (Variant::can_convert(args[idx].get_type(), t)) { + if (Variant::can_convert_strict(args[idx].get_type(), t)) { Variant old = args[idx]; Variant *ptrs[1] = { &old }; Variant::construct(t, args.write[idx], (const Variant **)ptrs, 1, err); @@ -786,7 +786,7 @@ bool AnimationMultiTrackKeyEdit::_set(const StringName &p_name, const Variant &p if (t != args[idx].get_type()) { Callable::CallError err; - if (Variant::can_convert(args[idx].get_type(), t)) { + if (Variant::can_convert_strict(args[idx].get_type(), t)) { Variant old = args[idx]; Variant *ptrs[1] = { &old }; Variant::construct(t, args.write[idx], (const Variant **)ptrs, 1, err);