Bugfix [#25617] HOME Key in fcurve editor doesn't center properly
authorJoshua Leung <aligorith@gmail.com>
Fri, 14 Jan 2011 05:19:04 +0000 (05:19 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 14 Jan 2011 05:19:04 +0000 (05:19 +0000)
commitaf4bc28c44f08629ba2bd6afb406edfe19011b63
treee5ac1e943a68a78fbfaa0dde82980ac577a1ca42
parent423fbcfa5c3674fcbd828f0b51de863cb74d6b9d
Bugfix [#25617] HOME Key in fcurve editor doesn't center properly

* When euler-rotation F-Curves had a single keyframe only, the view
would be artifically extended to fill up to 57 (this comes from the
radians to degrees calculations) due to a combination of the bounds-
finding function enforcing a minimum separation of 1 unit between
min/max. This has now been moved to the operator-level where it gets
applied AFTER these conversions have taken effect

* F-Curves with samples only (i.e. baked F-Curves) would be ignored by
these operators. Was caused by using a poll calback that only
considered whether there were keyframes. Hopefully this is sufficient;
otherwise a hybrid poll method will be needed.
source/blender/blenkernel/intern/fcurve.c
source/blender/editors/space_graph/graph_edit.c