mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
Fixed formatting, fixed dashed stroke style
This commit is contained in:
parent
ec9c5a99de
commit
4edcc3f099
@ -178,12 +178,12 @@ namespace XNodeEditor {
|
|||||||
// Coloring and bezier drawing.
|
// Coloring and bezier drawing.
|
||||||
int draw = 0;
|
int draw = 0;
|
||||||
Vector2 bezierPrevious = point_a;
|
Vector2 bezierPrevious = point_a;
|
||||||
for (int j = 1; j <= division; ++j)
|
for (int j = 1; j <= division; ++j) {
|
||||||
{
|
|
||||||
if (stroke == NoodleStroke.Dashed) {
|
if (stroke == NoodleStroke.Dashed) {
|
||||||
draw++;
|
draw++;
|
||||||
if (draw >= 2) draw = -2;
|
if (draw >= 2) draw = -2;
|
||||||
if (draw < 0) continue;
|
if (draw < 0) continue;
|
||||||
|
if (draw == 0) bezierPrevious = CalculateBezierPoint(point_a, tangent_a, tangent_b, point_b, (j - 1f) / (float) division);
|
||||||
}
|
}
|
||||||
if (i == length - 2)
|
if (i == length - 2)
|
||||||
Handles.color = gradient.Evaluate((j + 1f) / division);
|
Handles.color = gradient.Evaluate((j + 1f) / division);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user