F-Curve Drawing - Smoother curves
authorJoshua Leung <aligorith@gmail.com>
Tue, 26 Jul 2011 13:09:10 +0000 (13:09 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 26 Jul 2011 13:09:10 +0000 (13:09 +0000)
commit785e634c231542b5eb481946c93a3f8c65ad73a1
tree95ab060d9e612585854f43c7877bc60a469baacb
parent77e906cbd43accb3de89d0ac922d72e1c154aee9
F-Curve Drawing - Smoother curves

Bezier curves are now drawn smoother (i.e. less segmented), especially
for curve segments where there is a very large vertical displacement
over a short period of time (i.e. 120 degrees rotation over 1 frame)
and/or often when zoomed in a bit too.

- Made the resolution calculation take the vertical distance into
account too, instead of just the horizontal distance.
- Segment multiplier changed from 3 to 5, as this seems to give better
zoomed-in performance.
source/blender/editors/space_graph/graph_draw.c