diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2017-09-12 11:57:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-12 11:57:49 +0200 |
| commit | cf941fdc357791a93bd9ab9eaf16898e0c218ff3 (patch) | |
| tree | 546d046bffd826359c85240ae4562ef5df734e86 /scene/2d/path_2d.cpp | |
| parent | 84ccda4e1d6f9a63b689167887f7d329cdc5dffa (diff) | |
| parent | 8230bf0a2f39f0849b670d26067207c45edcca1a (diff) | |
Merge pull request #11026 from hpvb/fix-assign-in-if
Remove assignment and declarations in if statements
Diffstat (limited to 'scene/2d/path_2d.cpp')
| -rw-r--r-- | scene/2d/path_2d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index 1d7bd8fc2a..9bd5576d91 100644 --- a/scene/2d/path_2d.cpp +++ b/scene/2d/path_2d.cpp @@ -137,7 +137,8 @@ void PathFollow2D::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { - if ((path = Object::cast_to<Path2D>(get_parent()))) { + path = Object::cast_to<Path2D>(get_parent()); + if (path) { _update_transform(); } |