Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-19 17:28:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-19 17:28:19 +0400
commitaf3e348430218e609c80d86c8dd418bed15e70e8 (patch)
treea93e0453c8fe47a954594060cc5bbda90214a7f3 /source/blender/editors/transform/transform_manipulator.c
parent2f5173887e0c7f6ba19664f16b177e575d82a241 (diff)
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index a869af56537..7d0e9dd6005 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -662,9 +662,9 @@ static void partial_doughnut(float radring, float radhole, int start, int end, i
float cos_theta, sin_theta;
float cos_theta1, sin_theta1;
float ring_delta, side_delta;
- int i, j, docaps= 1;
+ int i, j, do_caps = TRUE;
- if (start==0 && end==nrings) docaps= 0;
+ if (start == 0 && end == nrings) do_caps = FALSE;
ring_delta= 2.0f*(float)M_PI/(float)nrings;
side_delta= 2.0f*(float)M_PI/(float)nsides;
@@ -678,7 +678,7 @@ static void partial_doughnut(float radring, float radhole, int start, int end, i
cos_theta1= (float)cos(theta1);
sin_theta1= (float)sin(theta1);
- if (docaps && i==start) { // cap
+ if (do_caps && i==start) { // cap
glBegin(GL_POLYGON);
phi= 0.0;
for (j= nsides; j >= 0; j--) {
@@ -710,7 +710,7 @@ static void partial_doughnut(float radring, float radhole, int start, int end, i
glEnd();
}
- if (docaps && i==end) { // cap
+ if (do_caps && i==end) { // cap
glBegin(GL_POLYGON);
phi= 0.0;
for (j= nsides; j >= 0; j--) {