mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
Merge pull request #61590 from Haydoggo/path-follow-fix
This commit is contained in:
commit
73f47921ea
@ -304,6 +304,7 @@ void PathFollow2D::_bind_methods() {
|
||||
}
|
||||
|
||||
void PathFollow2D::set_offset(real_t p_offset) {
|
||||
ERR_FAIL_COND(!isfinite(p_offset));
|
||||
offset = p_offset;
|
||||
if (path) {
|
||||
if (path->get_curve().is_valid()) {
|
||||
|
@ -397,6 +397,7 @@ void PathFollow3D::_bind_methods() {
|
||||
}
|
||||
|
||||
void PathFollow3D::set_offset(real_t p_offset) {
|
||||
ERR_FAIL_COND(!isfinite(p_offset));
|
||||
prev_offset = offset;
|
||||
offset = p_offset;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user