Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-07-09 11:53:06 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2010-07-09 11:53:06 +0400
commit7f63460a44d89cae52fbcb194d9040913d7cfb75 (patch)
treefeb07dc6f25d277691040289ccfc19f5af86e750 /source/blender/editors/space_view3d/drawobject.c
parent1f019c23fd11aefc363bb1694b94d0aee34501a1 (diff)
- Active bezier points could be drawn twice
- Unselected handles shouldn't have TH_LASTSEL_POINT color even if control point is active
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 7cbcc982bf6..be98e24ea9d 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -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);