diff options
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index a8f5aff2e1c..f470accae82 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -4911,7 +4911,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit) cd=cdata; pd=pdata; for (i=0, point=edit->points; i<totpoint; i++, point++) { - if (point->flag & PEP_HIDE) + if (point->flag & PEP_HIDE || point->totkey == 0) continue; if (point->keys->flag & PEK_USE_WCO) @@ -4931,7 +4931,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit) } else if (pset->selectmode == SCE_SELECT_END) { for (i=0, point=edit->points; i<totpoint; i++, point++) { - if ((point->flag & PEP_HIDE)==0) { + if ((point->flag & PEP_HIDE)==0 && point->totkey) { key = point->keys + point->totkey - 1; if (key->flag & PEK_SELECT) glColor3fv(sel_col); |