Don't draw shape parts at 0 rad/stroke

This commit is contained in:
Anuken
2022-07-05 20:15:34 -04:00
parent 85321d7465
commit 69a26900fe
4 changed files with 9 additions and 4 deletions

View File

@@ -66,10 +66,14 @@ public class HaloPart extends DrawPart{
float pointRot = rot + shapeMoveRot * prog * sign + shapeRotation * sign + baseRot * sign;
if(tri){
Drawf.tri(shapeX, shapeY, rad, triLen, pointRot);
if(rad > 0.001 && triLen > 0.001){
Drawf.tri(shapeX, shapeY, rad, triLen, pointRot);
}
}else if(!hollow){
Fill.poly(shapeX, shapeY, sides, rad, pointRot);
}else{
if(rad > 0.001){
Fill.poly(shapeX, shapeY, sides, rad, pointRot);
}
}else if(str > 0.001){
Lines.stroke(str);
Lines.poly(shapeX, shapeY, sides, rad, pointRot);
Lines.stroke(1f);