diff options
author | Ton Roosendaal <ton@blender.org> | 2003-12-08 19:46:36 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-12-08 19:46:36 +0300 |
commit | 23c1b0a7d4f92f2660ca9ec8cd2415edaa906b42 (patch) | |
tree | d8f9758eb2260d2878167e4c39d01ceb4147a4d6 /source/blender/src/view.c | |
parent | aefb33e8cfde29609239b872d9adcefb4da78586 (diff) |
- bug report Theeth, #772
When joining 2 unconnected control points in Curve/Surface (FKEY) Blender
crashed.
Was just assuming in this code that a knots vector array was there...
simple fix!
BTW: I think Theeth discovered here the oldest Blender ever, I could
track it back to old Traces code from 1992. :)
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r-- | source/blender/src/view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c index 7f0526b6b51..63b6870f347 100644 --- a/source/blender/src/view.c +++ b/source/blender/src/view.c @@ -23,6 +23,8 @@ * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. * All rights reserved. * + * Trackball math (in calctrackballvec()) Copyright (C) Silicon Graphics, Inc. + * * The Original Code is: all of this file. * * Contributor(s): none yet. @@ -325,6 +327,9 @@ void sdrawbox(short x1, short y1, short x2, short y2) glEnd(); } +/* the central math in this function was copied from trackball.cpp, sample code from the + Developers Toolbox series by SGI. */ + /* trackball: better one than a full spherical solution */ void calctrackballvecfirst(rcti *area, short *mval, float *vec) |