Page Menu
Home
Search
Configure Global Search
Log In
Files
F5764
ipomute07.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Juho Vepsalainen (bebraw)
Nov 13 2013, 1:24 PM
Size
2 KB
Subscribers
None
ipomute07.txt
View Options
Index: source/blender/blenkernel/intern/ipo.c
===================================================================
--- source/blender/blenkernel/intern/ipo.c (revision 10983)
+++ source/blender/blenkernel/intern/ipo.c (working copy)
@@ -997,7 +997,7 @@
if(ipo==NULL) return;
for(icu= ipo->curve.first; icu; icu= icu->next) {
- if(icu->driver || (icu->flag & IPO_LOCK)==0)
+ if((icu->driver || (icu->flag & IPO_LOCK)==0) && ipo->muteipo==0)
calc_icu(icu, ctime);
}
}
Index: source/blender/makesdna/DNA_ipo_types.h
===================================================================
--- source/blender/makesdna/DNA_ipo_types.h (revision 10983)
+++ source/blender/makesdna/DNA_ipo_types.h (working copy)
@@ -44,8 +44,8 @@
ListBase curve;
rctf cur;
- short blocktype, showkey;
- int pad;
+ short blocktype, showkey, muteipo;
+ short pad;
} Ipo;
Index: source/blender/src/header_ipo.c
===================================================================
--- source/blender/src/header_ipo.c (revision 10983)
+++ source/blender/src/header_ipo.c (working copy)
@@ -1156,6 +1156,7 @@
{
Object *ob;
EditIpo *ei;
+ Ipo *ipo;
uiBlock *block;
short xco,xmax;
char naam[20];
@@ -1225,6 +1226,7 @@
uiBlockSetEmboss(block, UI_EMBOSS);
ob= OBACT;
+ ipo= ob->ipo;
/* action switch option, only when active object is there and no pin */
uiSetButLock(G.sipo->pin, "Can't change because of pinned data");
@@ -1316,8 +1318,15 @@
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);
+ /* Mute IPOs */
+ if(ipo) {
+ uiBlockBeginAlign(block);
+ uiDefIconButS(block, ICONTOG, 1, ICON_RESTRICT_VIEW_OFF, xco+=XIC,0,XIC,YIC, &(ipo->muteipo), 0, 0, 0, 0, "Mute IPOs");
+ uiBlockEndAlign(block);
+ }
+
/* COPY PASTE */
- xco-= XIC/2;
+ xco+= XIC/2;
uiBlockBeginAlign(block);
if(curarea->headertype==HEADERTOP) {
uiDefIconBut(block, BUT, B_IPOCOPY, ICON_COPYUP, xco+=XIC,0,XIC,YIC, 0, 0, 0, 0, 0, "Copies the selected curves to the buffer");
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fc/78/7ff22b4c23a1b58b72bab982ff29
Event Timeline
Log In to Comment