mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 01:54:37 +08:00
fix
This commit is contained in:
parent
eb1c4ebf91
commit
57c6c27712
@ -69,7 +69,7 @@ namespace DCFApixels
|
|||||||
[IN(LINE)]
|
[IN(LINE)]
|
||||||
public DrawHandler LineStrip(List<Vector3> points, int startIndex, int length)
|
public DrawHandler LineStrip(List<Vector3> points, int startIndex, int length)
|
||||||
{
|
{
|
||||||
for (int i = startIndex, iMax = startIndex + length; i < iMax;)
|
for (int i = startIndex, iMax = startIndex + length - 1; i < iMax;)
|
||||||
{
|
{
|
||||||
Line(points[i], points[++i]);
|
Line(points[i], points[++i]);
|
||||||
}
|
}
|
||||||
@ -147,7 +147,7 @@ namespace DCFApixels
|
|||||||
[IN(LINE)]
|
[IN(LINE)]
|
||||||
public DrawHandler LineStrip(List<Vector2> points, int startIndex, int length)
|
public DrawHandler LineStrip(List<Vector2> points, int startIndex, int length)
|
||||||
{
|
{
|
||||||
for (int i = startIndex, iMax = startIndex + length; i < iMax;)
|
for (int i = startIndex, iMax = startIndex + length - 1; i < iMax;)
|
||||||
{
|
{
|
||||||
Line(points[i], points[++i]);
|
Line(points[i], points[++i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user