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:
authorTon Roosendaal <ton@blender.org>2004-11-26 15:20:35 +0300
committerTon Roosendaal <ton@blender.org>2004-11-26 15:20:35 +0300
commit91f48d07348f4239f980780caa875ae10b870c15 (patch)
treef4e14d61708f1ea242d1d7b60730c157eb9a39cb /source/blender/src/drawoops.c
parent4ef448cc51cb0a51ae1301c926e0cfe5770faac3 (diff)
Two fixes;
- Bug #1890. While render subsurf in editmode, orco coordinates were incorrect (subsurf vertices in editmode have different ordering) Bug was oldie. - IRC reported by Stefano; oops (not outliner) didnt show lamp textures nor material ipos correctly. Found error in oops curved lines too (the ones starting at right side)
Diffstat (limited to 'source/blender/src/drawoops.c')
-rw-r--r--source/blender/src/drawoops.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/drawoops.c b/source/blender/src/drawoops.c
index e2792737e76..4cfae91c665 100644
--- a/source/blender/src/drawoops.c
+++ b/source/blender/src/drawoops.c
@@ -157,16 +157,21 @@ void draw_oopslink(Oops *oops)
give_oopslink_line(oops, ol, vec[0], vec[3]);
dist= 0.5*VecLenf(vec[0], vec[3]);
-
+
/* check ol->xof and yof for direction */
- if(ol->xof <= 0.0) {
+ if(ol->xof == 0.0) {
vec[1][0]= vec[0][0]-dist;
vec[1][1]= vec[0][1];
}
+ else if(ol->xof==OOPSX) {
+ vec[1][0]= vec[0][0]+dist;
+ vec[1][1]= vec[0][1];
+ }
else {
vec[1][0]= vec[0][0];
vec[1][1]= vec[0][1]+dist;
}
+
/* v3 is always pointing down */
vec[2][0]= vec[3][0];
vec[2][1]= vec[3][1] - dist;