Don't draw shape parts at 0 rad/stroke
This commit is contained in:
@@ -572,3 +572,4 @@
|
|||||||
63112=scathe|block-scathe-ui
|
63112=scathe|block-scathe-ui
|
||||||
63111=scathe-missile|unit-scathe-missile-ui
|
63111=scathe-missile|unit-scathe-missile-ui
|
||||||
63110=ravage|block-ravage-ui
|
63110=ravage|block-ravage-ui
|
||||||
|
63109=underflow-duct|block-underflow-duct-ui
|
||||||
|
|||||||
Binary file not shown.
@@ -66,10 +66,14 @@ public class HaloPart extends DrawPart{
|
|||||||
float pointRot = rot + shapeMoveRot * prog * sign + shapeRotation * sign + baseRot * sign;
|
float pointRot = rot + shapeMoveRot * prog * sign + shapeRotation * sign + baseRot * sign;
|
||||||
|
|
||||||
if(tri){
|
if(tri){
|
||||||
|
if(rad > 0.001 && triLen > 0.001){
|
||||||
Drawf.tri(shapeX, shapeY, rad, triLen, pointRot);
|
Drawf.tri(shapeX, shapeY, rad, triLen, pointRot);
|
||||||
|
}
|
||||||
}else if(!hollow){
|
}else if(!hollow){
|
||||||
|
if(rad > 0.001){
|
||||||
Fill.poly(shapeX, shapeY, sides, rad, pointRot);
|
Fill.poly(shapeX, shapeY, sides, rad, pointRot);
|
||||||
}else{
|
}
|
||||||
|
}else if(str > 0.001){
|
||||||
Lines.stroke(str);
|
Lines.stroke(str);
|
||||||
Lines.poly(shapeX, shapeY, sides, rad, pointRot);
|
Lines.poly(shapeX, shapeY, sides, rad, pointRot);
|
||||||
Lines.stroke(1f);
|
Lines.stroke(1f);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class ShapePart extends DrawPart{
|
|||||||
}else{
|
}else{
|
||||||
Fill.circle(rx, ry, rad);
|
Fill.circle(rx, ry, rad);
|
||||||
}
|
}
|
||||||
}else{
|
}else if(str > 0.0001f){
|
||||||
Lines.stroke(str);
|
Lines.stroke(str);
|
||||||
if(!circle){
|
if(!circle){
|
||||||
Lines.poly(rx, ry, sides, rad, moveRot * prog * sign + params.rotation - 90 * sign + rotation * sign + baseRot * sign);
|
Lines.poly(rx, ry, sides, rad, moveRot * prog * sign + params.rotation - 90 * sign + rotation * sign + baseRot * sign);
|
||||||
|
|||||||
Reference in New Issue
Block a user