summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-10 18:01:16 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-10 18:01:16 -0300
commit5b088b41b3147cc19f2d5bc56b762bd5988bc484 (patch)
tree5b9c82628f02adab4d86479048c5396d498feb9a /scene
parent0c9a2244d722bd463b9ef0c430ee0cff0bb30cb9 (diff)
make path update when curve changes, fixes #3144
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/path_2d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp
index f135864098..bd7415aa04 100644
--- a/scene/2d/path_2d.cpp
+++ b/scene/2d/path_2d.cpp
@@ -74,6 +74,8 @@ void Path2D::set_curve(const Ref<Curve2D>& p_curve) {
curve->connect("changed",this,"_curve_changed");
}
+ _curve_changed();
+
}
Ref<Curve2D> Path2D::get_curve() const{