diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-01-14 13:41:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-01-14 13:41:36 +0300 |
commit | f8ec163076c237ff06bd34092163bc915c2f0427 (patch) | |
tree | ac14b50e357803af9f09dc1f1e0a296b0ed091a5 /source/blender/radiosity | |
parent | 2262d0a45a83dc7fc04017907352ed745aeb8d1e (diff) |
menu generation read and wrote to the same memory with sprintf(), use INIT_MINMAX in a few more places and centerview didnt take into account some bone tips in editmode.
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r-- | source/blender/radiosity/intern/source/radfactors.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/radiosity/intern/source/radfactors.c b/source/blender/radiosity/intern/source/radfactors.c index b6411522179..d2d1b581ae8 100644 --- a/source/blender/radiosity/intern/source/radfactors.c +++ b/source/blender/radiosity/intern/source/radfactors.c @@ -744,11 +744,9 @@ void subdivideshootElements(int it) } } if(rn) { - min[0]= min[1]= min[2]= 1.0e10; - max[0]= max[1]= max[2]= -1.0e10; + INIT_MINMAX(min, max); /* errmin and max are the filtered colors */ - errmin[0]= errmin[1]= errmin[2]= 1.0e10; - errmax[0]= errmax[1]= errmax[2]= -1.0e10; + INIT_MINMAX(errmin, errmax); minmaxradelemfilt(rp->first, min, max, errmin, errmax); /* if small difference between colors: no subdiv */ |