NLA SoC: Little optimisation + Drawing bugfix
authorJoshua Leung <aligorith@gmail.com>
Wed, 8 Jul 2009 12:30:09 +0000 (12:30 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 8 Jul 2009 12:30:09 +0000 (12:30 +0000)
commit5f5ddb00146884d28414811bc92311af56d55904
tree6cd08b398d2f9cc721aff27ab4c69667cbcd86b0
parent665938191df7e831ba22f101b00ab9b99bdde654
NLA SoC: Little optimisation + Drawing bugfix

* Text labels on NLA-Strips should now draw properly for most short-strips now. Previously, the padding on the text was a bit too extreme, so for very short strips (less than 4 frames or so), the text was often pushed down into the bottom-right corner of view.

* Optimised the keyframe-highlighting code for buttons a bit. Replaced the custom linear-search with the binary-search used when inserting keyframes (and for the 3d-view keyframe-indicator). There should be some theoretical improvements due to this at least...
source/blender/blenkernel/BKE_fcurve.h
source/blender/blenkernel/intern/fcurve.c
source/blender/editors/animation/keyframing.c
source/blender/editors/include/ED_keyframing.h
source/blender/editors/interface/interface_anim.c
source/blender/editors/space_nla/nla_draw.c