code cleanup: don't use magic numbers for curve flag & use bool args for curvemapping_changed()

This commit is contained in:
2012-08-21 08:47:36 +00:00
parent 988df24551
commit 3204731209
10 changed files with 42 additions and 53 deletions

View File

@@ -1481,7 +1481,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect
glBegin(GL_LINE_STRIP);
if (cuma->table == NULL)
curvemapping_changed(cumap, 0); /* 0 = no remove doubles */
curvemapping_changed(cumap, FALSE);
cmp = cuma->table;
/* first point */
@@ -1514,7 +1514,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect
glPointSize(3.0f);
bglBegin(GL_POINTS);
for (a = 0; a < cuma->totpoint; a++) {
if (cmp[a].flag & SELECT)
if (cmp[a].flag & CUMA_SELECT)
UI_ThemeColor(TH_TEXT_HI);
else
UI_ThemeColor(TH_TEXT);