Fixed curve baking, now always start at origin point
(cherry picked from commit 08b93da28a
)
This commit is contained in:
parent
4bfcd14a6a
commit
5fac497aa2
|
@ -543,7 +543,8 @@ void Curve2D::_bake() const {
|
||||||
Vector2 pos=points[0].pos;
|
Vector2 pos=points[0].pos;
|
||||||
List<Vector2> pointlist;
|
List<Vector2> pointlist;
|
||||||
|
|
||||||
|
pointlist.push_back(pos); //start always from origin
|
||||||
|
|
||||||
for(int i=0;i<points.size()-1;i++) {
|
for(int i=0;i<points.size()-1;i++) {
|
||||||
|
|
||||||
float step = 0.1; // at least 10 substeps ought to be enough?
|
float step = 0.1; // at least 10 substeps ought to be enough?
|
||||||
|
|
Loading…
Reference in New Issue