- 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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user