- Active bezier points could be drawn twice

- Unselected handles shouldn't have TH_LASTSEL_POINT color even if
  control point is active
This commit is contained in:
Sergey Sharybin
2010-07-09 07:53:06 +00:00
parent 1f019c23fd
commit 7f63460a44

View File

@@ -4475,13 +4475,13 @@ static void tekenvertsN(Nurb *nu, short sel, short hide_handles, void *lastsel)
a= nu->pntsu;
while(a--) {
if(bezt->hide==0) {
if (bezt == lastsel) {
if (sel == 1 && bezt == lastsel) {
UI_ThemeColor(TH_LASTSEL_POINT);
bglVertex3fv(bezt->vec[1]);
if (!hide_handles) {
bglVertex3fv(bezt->vec[0]);
bglVertex3fv(bezt->vec[2]);
if(bezt->f1 & SELECT) bglVertex3fv(bezt->vec[0]);
if(bezt->f3 & SELECT) bglVertex3fv(bezt->vec[2]);
}
UI_ThemeColor(color);