瀏覽代碼

Reviewed formatting

pull/2063/head
raysan5 3 年之前
父節點
當前提交
1350361f58
共有 1 個文件被更改,包括 2 次插入7 次删除
  1. +2
    -7
      src/rmodels.c

+ 2
- 7
src/rmodels.c 查看文件

@ -711,12 +711,9 @@ void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float e
int numVertex = sides*6;
rlCheckRenderBatchLimit(numVertex);
if(sides < 3) sides = 3;
Vector3 direction = { endPos.x - startPos.x, endPos.y - startPos.y, endPos.z - startPos.z };
if(direction.x == 0 && direction.y == 0 && direction.z == 0) {
return;
}
if ((direction.x == 0) && (direction.y == 0) && (direction.z == 0)) return;
// Construct a basis of the base and the top face:
Vector3 b1 = Vector3Normalize(Vector3Perpendicular(direction));
@ -809,9 +806,7 @@ void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, fl
rlCheckRenderBatchLimit(numVertex);
Vector3 direction = { endPos.x - startPos.x, endPos.y - startPos.y, endPos.z - startPos.z };
if(direction.x == 0 && direction.y == 0 && direction.z == 0) {
return;
}
if ((direction.x == 0) && (direction.y == 0) && (direction.z == 0))return;
// Construct a basis of the base and the top face:
Vector3 b1 = Vector3Normalize(Vector3Perpendicular(direction));

Loading…
取消
儲存