From 5fac497aa2006780c4f82108a238c06829bcd8df Mon Sep 17 00:00:00 2001 From: Hearto Lazor Date: Fri, 15 Apr 2016 00:13:17 -0300 Subject: [PATCH] Fixed curve baking, now always start at origin point (cherry picked from commit 08b93da28aaa3cef006ce6cb13c4e5f7f8d8b5d2) --- scene/resources/curve.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/resources/curve.cpp b/scene/resources/curve.cpp index 7dec4029fc4..516156c3150 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -543,7 +543,8 @@ void Curve2D::_bake() const { Vector2 pos=points[0].pos; List pointlist; - + pointlist.push_back(pos); //start always from origin + for(int i=0;i