Fix and index in curves.gd.

This commit is contained in:
Relintai 2021-10-26 11:35:45 +02:00
parent 6c5f2c0e95
commit 920d4895e1

View File

@ -58,7 +58,7 @@ static func curve(x : float, points : PoolRealArray) -> float:
var dx : float = x - points[pi];
#var d : float = p_"+name+"_"+str(i+1)+"_x - p_"+name+"_"+str(i)+"_x;
var d : float = points[pi + 1] - points[pi];
var d : float = points[pip1] - points[pi];
var t : float = dx / d
var omt : float = (1.0 - t)