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
path: root/source
diff options
context:
space:
mode:
authorJohnny Matthews <johnny.matthews@gmail.com>2006-08-13 16:49:31 +0400
committerJohnny Matthews <johnny.matthews@gmail.com>2006-08-13 16:49:31 +0400
commitcf1964cf9cea690d3800d9852567f01653b7b207 (patch)
treebe249cf83eb78f0578678636b5ce0de866dbfed7 /source
parent28f23d9b81ee194794b0ea088be076c24ceabbfb (diff)
unmixing code and var declarations.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawobject.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 70f3c4e095e..c4f11a577c0 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -2916,10 +2916,11 @@ static void drawnurb(Base *base, Nurb *nurb, int dt)
float fac;
while (nr-->0) {
+ float ox,oy,oz;
fac = calc_curve_subdiv_radius(cu, nu, (bl->nr - nr));
- float ox = G.scene->editbutsize*fac*bevp->mat[0][0];
- float oy = G.scene->editbutsize*fac*bevp->mat[0][1];
- float oz = G.scene->editbutsize*fac*bevp->mat[0][2];
+ ox = G.scene->editbutsize*fac*bevp->mat[0][0];
+ oy = G.scene->editbutsize*fac*bevp->mat[0][1];
+ oz = G.scene->editbutsize*fac*bevp->mat[0][2];
glVertex3f(bevp->x - ox, bevp->y - oy, bevp->z - oz);
glVertex3f(bevp->x + ox, bevp->y + oy, bevp->z + oz);