diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-04 21:48:02 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-04 21:48:02 +0400 |
commit | 42c5725349f3fccdc1bddb1976d93abe9ec1b48b (patch) | |
tree | 93eac85d319c736a0e4a0e54ad7bbe9a7d5833ee /source/blender/src/header_ipo.c | |
parent | 86af9a006577d107a5dff249459c283d57c8878c (diff) |
Bugfix #4271
Sequence editor: Ipowindow allowed to "Pin" an animation curve, which
isn't supported really. (Strips are not library data)
Diffstat (limited to 'source/blender/src/header_ipo.c')
-rw-r--r-- | source/blender/src/header_ipo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/header_ipo.c b/source/blender/src/header_ipo.c index 8de8d00d675..5b0bdac487e 100644 --- a/source/blender/src/header_ipo.c +++ b/source/blender/src/header_ipo.c @@ -1028,7 +1028,7 @@ void ipo_buttons(void) uiBlock *block; short xco,xmax; char naam[20]; - int icon=0; + int icon=0, allow_pin= B_IPOPIN; sprintf(naam, "header %d", curarea->headwin); block= uiNewBlock(&curarea->uiblocks, naam, UI_EMBOSS, UI_HELV, curarea->headwin); @@ -1177,7 +1177,10 @@ void ipo_buttons(void) uiClearButLock(); - xco= std_libbuttons(block, (short)(xco+1.5*XIC), 0, B_IPOPIN, &G.sipo->pin, B_IPOBROWSE, ID_IP, G.sipo->blocktype, (ID*)G.sipo->ipo, G.sipo->from, &(G.sipo->menunr), B_IPOALONE, B_IPOLOCAL, B_IPODELETE, 0, B_KEEPDATA); + if(G.sipo->blocktype==ID_SEQ) + allow_pin= 0; + xco= std_libbuttons(block, (short)(xco+1.5*XIC), 0, allow_pin, &G.sipo->pin, B_IPOBROWSE, ID_IP, + G.sipo->blocktype, (ID*)G.sipo->ipo, G.sipo->from, &(G.sipo->menunr), B_IPOALONE, B_IPOLOCAL, B_IPODELETE, 0, B_KEEPDATA); /* COPY PASTE */ xco-= XIC/2; |