Skip to content

Commit

Permalink
Revert "Merge pull request #97380 from TheSofox/handle_modes_default_…
Browse files Browse the repository at this point in the history
…fix"

This reverts commit 4c5e879, reversing
changes made to 65c94ec.
  • Loading branch information
The Rizzler committed Oct 1, 2024
1 parent 052aeda commit 1b78d01
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scene/resources/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,8 @@ bool Animation::_set(const StringName &p_name, const Variant &p_value) {
Vector<real_t> times = d["times"];
Vector<real_t> values = d["points"];
#ifdef TOOLS_ENABLED
Vector<int> handle_modes;
if (d.has("handle_modes")) {
handle_modes = d["handle_modes"];
} else {
handle_modes.resize_zeroed(times.size());
}
ERR_FAIL_COND_V(!d.has("handle_modes"), false);
Vector<int> handle_modes = d["handle_modes"];
#endif // TOOLS_ENABLED

ERR_FAIL_COND_V(times.size() * 5 != values.size(), false);
Expand Down

0 comments on commit 1b78d01

Please sign in to comment.