diff options
author | Ton Roosendaal <ton@blender.org> | 2005-03-23 19:55:22 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-03-23 19:55:22 +0300 |
commit | 7c1303bf2541b13c7c3bd31fc748d8070456ee6d (patch) | |
tree | 56df520701dc6a5f7071e4248bff97c94a2ebe80 /source | |
parent | 5412cab522ac1d5b72014cc2c58f9391463e1aba (diff) |
Bug fix #2375
Akey in ipowindow didn't deselect anymore. Or worse... each main refresh
in ipowindow selected all ipos!
Was related to trying to fix mess from jK's commit last year... now its
scientifically ok again! :)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editipo.c | 8 | ||||
-rw-r--r-- | source/blender/src/space.c | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index d218cdac0f7..0db4f60ffca 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -698,6 +698,7 @@ void make_ob_editipo(Object *ob, SpaceIpo *si) ei->flag= ei->icu->flag; } + ei++; } } @@ -1162,9 +1163,6 @@ void make_editipo() ei= G.sipo->editipo; for(a=0; a<G.sipo->totipo; a++, ei++) { - - if(ei->flag & IPO_VISIBLE) ei->flag |= IPO_SELECT; - if(ei->icu) ei->icu->flag= ei->flag; } editipo_changed(G.sipo, 0); @@ -1408,7 +1406,6 @@ void swap_selectall_editipo() BezTriple *bezt; int a, b; /* , sel=0; */ - deselectall_key(); get_status_editipo(); @@ -1429,6 +1426,7 @@ void swap_selectall_editipo() } else if(totipo_edit==0) { ei= G.sipo->editipo; + printf("before totipo_sel %d\n", totipo_sel); if (ei){ for(a=0; a<G.sipo->totipo; a++) { if( ei->flag & IPO_VISIBLE ) { @@ -1439,6 +1437,8 @@ void swap_selectall_editipo() } update_editipo_flags(); } + get_status_editipo(); + printf("after totipo_sel %d\n", totipo_sel); } else { ei= G.sipo->editipo; diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 3f796a79ff9..1bd6658a667 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1967,7 +1967,9 @@ static void winqreadipospace(ScrArea *sa, void *spacedata, BWinEvent *evt) if(in_ipo_buttons()) { swap_visible_editipo(); } - else swap_selectall_editipo(); + else { + swap_selectall_editipo(); + } allspace (REMAKEIPO, 0); allqueue (REDRAWNLA, 0); allqueue (REDRAWACTION, 0); |