Skip to content

Commit

Permalink
Update CylinderWrapper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Sep 26, 2020
1 parent 4f709be commit 247a66d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/net/fexcraft/app/fmt/wrappers/CylinderWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected PolygonWrapper createClone(GroupCompound compound){

protected ModelRendererTurbo newMRT(){
ModelRendererTurbo turbo = new ModelRendererTurbo(null, textureX(), textureY(), compound.tx(getTurboList()), compound.ty(getTurboList()));
if(radial || usesTopRotation() || cuv.anyCustom()){
if(radius != 0f || radial || usesTopRotation() || cuv.anyCustom()){
CylinderBuilder builder = turbo.newCylinderBuilder().setPosition(off.xCoord, off.yCoord, off.zCoord)
.setRadius(radius, radius2).setLength(length).setSegments(segments, seglimit).setScale(base, top)
.setDirection(direction).setTopOffset(topoff).removePolygons(bools);
Expand All @@ -54,9 +54,9 @@ protected ModelRendererTurbo newMRT(){
else builder.setTopRotation(toprot);
builder.build();
}
else if(radius2 != 0){
/*else if(radius2 != 0){
turbo.addHollowCylinder(off.xCoord, off.yCoord, off.zCoord, radius, radius2, length, segments, seglimit, base, top, direction, getTopOff(), bools);
}
}*/
else{
turbo.addCylinder(off.xCoord, off.yCoord, off.zCoord, radius, length, segments, base, top, direction, getTopOff());
}
Expand Down

0 comments on commit 247a66d

Please sign in to comment.