diff options
| author | Juan Linietsky | 2017-06-28 17:00:18 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-06-28 17:01:35 -0300 |
| commit | db3b05d2893dcaddeb3bcb10b845ff150eb50895 (patch) | |
| tree | e19d761357300ba03360593e3cbdda01e87f215e /scene/resources/curve.cpp | |
| parent | 9e54e1f34f7ee0b100b45fa2388f25096eb90670 (diff) | |
| download | godot-db3b05d2893dcaddeb3bcb10b845ff150eb50895.tar.gz godot-db3b05d2893dcaddeb3bcb10b845ff150eb50895.tar.zst godot-db3b05d2893dcaddeb3bcb10b845ff150eb50895.zip | |
Diffstat (limited to 'scene/resources/curve.cpp')
| -rw-r--r-- | scene/resources/curve.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/curve.cpp b/scene/resources/curve.cpp index bc6d0230a..338311b87 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -730,7 +730,7 @@ void Curve::set_data(Array input) { // Validate input for (int i = 0; i < input.size(); i += ELEMS) { ERR_FAIL_COND(input[i].get_type() != Variant::VECTOR2); - ERR_FAIL_COND(input[i + 1].get_type() != Variant::REAL); + ERR_FAIL_COND(!input[i + 1].is_num()); ERR_FAIL_COND(input[i + 2].get_type() != Variant::REAL); ERR_FAIL_COND(input[i + 3].get_type() != Variant::INT); |
