From fbc7ab30ff025ad3db59a73e2901883986e2e81e Mon Sep 17 00:00:00 2001 From: Kevin Mackay Date: Mon, 27 Jan 2014 15:18:40 +1100 Subject: Curves: save active point to file Changed curve active point from pointer to index. Allows curve active point to be saved to file and retained between modes for free. Also some small optimisations by removing pointer look up code. - Made active point access functions into BKE API calls. - Fixes operators where curve de-selection resulted in unsel-active point. - Split curve delete into 2 functions --- source/blender/editors/interface/resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 63f4681c779..181e8de3f3d 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -372,7 +372,7 @@ const unsigned char *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colo cp = ts->nurb_sel_vline; break; case TH_ACTIVE_SPLINE: cp = ts->act_spline; break; - case TH_LASTSEL_POINT: + case TH_ACTIVE_VERT: cp = ts->lastsel_point; break; case TH_HANDLE_FREE: cp = ts->handle_free; break; -- cgit v1.2.3