more mini optimizations - don't call UI_ThemeColor 4 times per curve handle, instead...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 17 Sep 2011 07:14:39 +0000 (07:14 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 17 Sep 2011 07:14:39 +0000 (07:14 +0000)
commitf2748bfdc303e63f247372ea4aafe51c1d43ac0a
tree0c13697bc034fb5ada47e9be34baebbcbc8a94d8
parent5114320dc5d2331e3e927dd83ee53e0088c23e87
more mini optimizations - don't call UI_ThemeColor 4 times per curve handle, instead get all colors at the start and index them when drawing curves in editmode.

also remove redundant NULL check.
source/blender/blenkernel/intern/screen.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/space_view3d/drawobject.c