Skip to content

Commit

Permalink
Fix divide by zero
Browse files Browse the repository at this point in the history
  • Loading branch information
unascribed committed Nov 20, 2021
1 parent 53ab504 commit 5cacfd4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ public static void render(EarsFeatures features, EarsRenderDelegate delegate) {
delegate.rotate(90, 1, 0, 0);
}
int segments = features.tailSegments;
if (segments <= 0) segments = 1;
float[] angles = {vert ? 0 : baseAngle, features.tailBend1, features.tailBend2, features.tailBend3};
int segHeight = 12/segments;
for (int i = 0; i < segments; i++) {
Expand Down

0 comments on commit 5cacfd4

Please sign in to comment.