forked from bartvdbraak/blender
== Action Editor - Header Buttons Shuffle ==
* Changed the order of Copy/Paste and AutoSnap buttons * Auto-snap menu now has more descriptive names (off --> No Snap)
This commit is contained in:
parent
4a0dc8d4d9
commit
aa9aa530fb
@ -1241,24 +1241,8 @@ void action_buttons(void)
|
||||
|
||||
uiClearButLock();
|
||||
|
||||
/* draw AUTOSNAP */
|
||||
xco += 8;
|
||||
|
||||
if (G.saction->flag & SACTION_DRAWTIME) {
|
||||
uiDefButS(block, MENU, B_REDR,
|
||||
"Auto-Snap Keyframes %t|Off %x0|Second Step %x1|Nearest Second %x2|Nearest Marker %x3",
|
||||
xco,0,70,YIC, &(G.saction->autosnap), 0, 1, 0, 0,
|
||||
"Auto-snapping mode for keyframes when transforming");
|
||||
}
|
||||
else {
|
||||
uiDefButS(block, MENU, B_REDR,
|
||||
"Auto-Snap Keyframes %t|Off %x0|Frame Step %x1|Nearest Frame %x2|Nearest Marker %x3",
|
||||
xco,0,70,YIC, &(G.saction->autosnap), 0, 1, 0, 0,
|
||||
"Auto-snapping mode for keyframes when transforming");
|
||||
}
|
||||
|
||||
xco += (70 + 8);
|
||||
|
||||
/* COPY PASTE */
|
||||
uiBlockBeginAlign(block);
|
||||
if (curarea->headertype==HEADERTOP) {
|
||||
@ -1272,6 +1256,22 @@ void action_buttons(void)
|
||||
uiBlockEndAlign(block);
|
||||
xco += (XIC + 8);
|
||||
|
||||
/* draw AUTOSNAP */
|
||||
if (G.saction->flag & SACTION_DRAWTIME) {
|
||||
uiDefButS(block, MENU, B_REDR,
|
||||
"Auto-Snap Keyframes %t|No Snap %x0|Second Step Snap %x1|Nearest Second Snap %x2|Nearest Marker Snap%x3",
|
||||
xco,0,70,YIC, &(G.saction->autosnap), 0, 1, 0, 0,
|
||||
"Auto-snapping mode for keyframes when transforming");
|
||||
}
|
||||
else {
|
||||
uiDefButS(block, MENU, B_REDR,
|
||||
"Auto-Snap Keyframes %t|No Snap %x0|Frame Step Snap %x1|Nearest Frame Snap %x2|Nearest Marker Snap %x3",
|
||||
xco,0,70,YIC, &(G.saction->autosnap), 0, 1, 0, 0,
|
||||
"Auto-snapping mode for keyframes when transforming");
|
||||
}
|
||||
|
||||
xco += (70 + 8);
|
||||
|
||||
/* draw LOCK */
|
||||
uiDefIconButS(block, ICONTOG, 1, ICON_UNLOCKED, xco, 0, XIC, YIC,
|
||||
&(G.saction->lock), 0, 0, 0, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user