diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-09 15:30:16 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-09 15:30:16 +0200 |
commit | a3a8d3463ecdabc4efdd2bdbbbeee0a814b4ebd4 (patch) | |
tree | 1e29abe21e12ad28f14d0d3b10582a2c9887f5b2 /editor/animation_track_editor.cpp | |
parent | a5de7e3820bb6bb09c58bc4e351d70420af54424 (diff) | |
parent | ad769903b04f7c68aebc3aafb3addc41360bf64a (diff) | |
download | redot-engine-a3a8d3463ecdabc4efdd2bdbbbeee0a814b4ebd4.tar.gz |
Merge pull request #74948 from AThousandShips/animation_key
Fix type check in AnimationTrackKeyEdit for methods
Diffstat (limited to 'editor/animation_track_editor.cpp')
-rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 44e02c317c..24a6d89118 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -209,7 +209,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); @@ -794,7 +794,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); |