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:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-02-22 21:49:00 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-02-22 21:49:00 +0300
commita7bccae4779e88b75f326cdda2d0defc2045b19b (patch)
tree5d13e77e78b6859b14fe8a8722bb14ec7536be1e /source/blender/src/drawview.c
parent685d26f90131da6bfe4bc3de7cbde9b8d41135d6 (diff)
== Sculpt Mode ==
* Replaced get_tex_angle() with tex_angle() and set_tex_angle(). This removes the need to do a bunch of error-prone NULL checking everywhere the texture angle is used.
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r--source/blender/src/drawview.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 533ffff7165..7c3c5287e7c 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2815,7 +2815,6 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
PropsetData *pd= sculpt_session()->propset;
short r1=100, r2=100, r3=100;
short mouse[2];
- float *ang= get_tex_angle();
if(pd) {
if(pd->mode == PropsetSize) {
r1= sculptmode_brush()->size;
@@ -2842,7 +2841,7 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
glPushMatrix();
glTranslatef(pd->origloc[0], pd->origloc[1], 0);
- if(ang) glRotatef(*ang, 0, 0, 1);
+ glRotatef(tex_angle(), 0, 0, 1);
glEnable(GL_TEXTURE_2D);
glBegin(GL_QUADS);