- bug fixes:
- "Crop and Anim" panel had wrong name... now "Anim and Movie"
- this panel didnt draw buttons always, should be for 'anim option' (which
is different from 'movie' option!
- added call to re-align the panels each time a new screen is set (also
after file read) to make sure new panels (or with new name) are properly
initialized
- fixed drawing error in nurbs buttons
This commit is contained in:
@@ -921,7 +921,7 @@ static void editing_panel_curve_type(Object *ob, Curve *cu)
|
|||||||
|
|
||||||
uiDefButS(block, TOG|BIT|5, 0, "UV Orco", 600,160,150,19, &cu->flag, 0, 0, 0, 0, "");
|
uiDefButS(block, TOG|BIT|5, 0, "UV Orco", 600,160,150,19, &cu->flag, 0, 0, 0, 0, "");
|
||||||
if(ob->type==OB_SURF)
|
if(ob->type==OB_SURF)
|
||||||
uiDefButS(block, TOG|BIT|6, REDRAWVIEW3D, "No Puno Flip", 600,150,140,19, &cu->flag, 0, 0, 0, 0, "");
|
uiDefButS(block, TOG|BIT|6, REDRAWVIEW3D, "No Puno Flip", 600,140,150,19, &cu->flag, 0, 0, 0, 0, "");
|
||||||
|
|
||||||
uiDefBut(block, BUT,B_DOCENTRE, "Centre", 600, 115, 150, 19, 0, 0, 0, 0, 0, "Shifts object data to be centered about object's origin");
|
uiDefBut(block, BUT,B_DOCENTRE, "Centre", 600, 115, 150, 19, 0, 0, 0, 0, 0, "Shifts object data to be centered about object's origin");
|
||||||
uiDefBut(block, BUT,B_DOCENTRENEW, "Centre New", 600, 95, 150, 19, 0, 0, 0, 0, 0, "Shifts object's origin to center of object data");
|
uiDefBut(block, BUT,B_DOCENTRENEW, "Centre New", 600, 95, 150, 19, 0, 0, 0, 0, 0, "Shifts object's origin to center of object data");
|
||||||
|
|||||||
@@ -856,40 +856,37 @@ static void texture_panel_image1(Tex *tex)
|
|||||||
char str[32];
|
char str[32];
|
||||||
|
|
||||||
block= uiNewBlock(&curarea->uiblocks, "texture_panel1", UI_EMBOSS, UI_HELV, curarea->win);
|
block= uiNewBlock(&curarea->uiblocks, "texture_panel1", UI_EMBOSS, UI_HELV, curarea->win);
|
||||||
if(uiNewPanel(curarea, block, "Crop and Anim", "Texture", 960, 0, 318, 204)==0) return;
|
if(uiNewPanel(curarea, block, "Anim and Movie", "Texture", 960, 0, 318, 204)==0) return;
|
||||||
uiSetButLock(tex->id.lib!=0, "Can't edit library data");
|
uiSetButLock(tex->id.lib!=0, "Can't edit library data");
|
||||||
|
|
||||||
if(tex->imaflag & TEX_ANIM5) {
|
/* print amount of frames anim */
|
||||||
|
if(tex->ima && tex->ima->anim) {
|
||||||
/* print amount of frames anim */
|
uiDefBut(block, BUT, B_TEXSETFRAMES, "<", 802, 110, 20, 18, 0, 0, 0, 0, 0, "Paste number of frames in Frames: button");
|
||||||
if(tex->ima && tex->ima->anim) {
|
sprintf(str, "%d frs ", IMB_anim_get_duration(tex->ima->anim));
|
||||||
uiDefBut(block, BUT, B_TEXSETFRAMES, "<", 802, 110, 20, 18, 0, 0, 0, 0, 0, "Paste number of frames in Frames: button");
|
uiDefBut(block, LABEL, 0, str, 834, 110, 90, 18, 0, 0, 0, 0, 0, "");
|
||||||
sprintf(str, "%d frs ", IMB_anim_get_duration(tex->ima->anim));
|
sprintf(str, "%d cur ", tex->ima->lastframe);
|
||||||
uiDefBut(block, LABEL, 0, str, 834, 110, 90, 18, 0, 0, 0, 0, 0, "");
|
uiDefBut(block, LABEL, 0, str, 834, 90, 90, 18, 0, 0, 0, 0, 0, "");
|
||||||
sprintf(str, "%d cur ", tex->ima->lastframe);
|
|
||||||
uiDefBut(block, LABEL, 0, str, 834, 90, 90, 18, 0, 0, 0, 0, 0, "");
|
|
||||||
}
|
|
||||||
else uiDefBut(block, LABEL, 0, "<", 802, 110, 20, 18, 0, 0, 0, 0, 0, "");
|
|
||||||
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Frames :", 642,110,150,19, &tex->frames, 0.0, 18000.0, 0, 0, "Activate animation option");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Offset :", 642,90,150,19, &tex->offset, -9000.0, 9000.0, 0, 0, "Set the number of the first picture of the animation");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Fie/Ima:", 642,60,98,19, &tex->fie_ima, 1.0, 200.0, 0, 0, "Set the number of fields per rendered frame");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "StartFr:", 642,30,150,19, &tex->sfra, 1.0, 9000.0, 0, 0, "Set the start frame of the animation");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Len:", 642,10,150,19, &tex->len, 0.0, 9000.0, 0, 0, "Set the length of the animation");
|
|
||||||
|
|
||||||
uiBlockBeginAlign(block);
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,70,73,19, &(tex->fradur[0][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,50,73,19, &(tex->fradur[1][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,30,73,19, &(tex->fradur[2][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,10,73,19, &(tex->fradur[3][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
|
||||||
uiBlockBeginAlign(block);
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "", 879,70,37,19, &(tex->fradur[0][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "", 879,50,37,19, &(tex->fradur[1][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "", 879,30,37,19, &(tex->fradur[2][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
|
||||||
uiDefButS(block, NUM, B_TEXPRV, "", 879,10,37,19, &(tex->fradur[3][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
|
||||||
uiBlockEndAlign(block);
|
|
||||||
uiDefButS(block, TOG|BIT|6, 0, "Cyclic", 743,60,48,19, &tex->imaflag, 0, 0, 0, 0, "Repeat animation image");
|
|
||||||
}
|
}
|
||||||
|
else uiDefBut(block, LABEL, 0, "<", 802, 110, 20, 18, 0, 0, 0, 0, 0, "");
|
||||||
|
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Frames :", 642,110,150,19, &tex->frames, 0.0, 18000.0, 0, 0, "Activate animation option");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Offset :", 642,90,150,19, &tex->offset, -9000.0, 9000.0, 0, 0, "Set the number of the first picture of the animation");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Fie/Ima:", 642,60,98,19, &tex->fie_ima, 1.0, 200.0, 0, 0, "Set the number of fields per rendered frame");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "StartFr:", 642,30,150,19, &tex->sfra, 1.0, 9000.0, 0, 0, "Set the start frame of the animation");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Len:", 642,10,150,19, &tex->len, 0.0, 9000.0, 0, 0, "Set the length of the animation");
|
||||||
|
|
||||||
|
uiBlockBeginAlign(block);
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,70,73,19, &(tex->fradur[0][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,50,73,19, &(tex->fradur[1][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,30,73,19, &(tex->fradur[2][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "Fra:", 802,10,73,19, &(tex->fradur[3][0]), 0.0, 18000.0, 0, 0, "Montage mode: frame start");
|
||||||
|
uiBlockBeginAlign(block);
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "", 879,70,37,19, &(tex->fradur[0][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "", 879,50,37,19, &(tex->fradur[1][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "", 879,30,37,19, &(tex->fradur[2][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
||||||
|
uiDefButS(block, NUM, B_TEXPRV, "", 879,10,37,19, &(tex->fradur[3][1]), 0.0, 250.0, 0, 0, "Montage mode: amount of displayed frames");
|
||||||
|
uiBlockEndAlign(block);
|
||||||
|
uiDefButS(block, TOG|BIT|6, 0, "Cyclic", 743,60,48,19, &tex->imaflag, 0, 0, 0, 0, "Repeat animation image");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1869,21 +1869,25 @@ void setscreen(bScreen *sc)
|
|||||||
test_scale_screen(sc);
|
test_scale_screen(sc);
|
||||||
testareas();
|
testareas();
|
||||||
|
|
||||||
for (sa= sc->areabase.first; sa; sa= sa->next) {
|
for(sa= sc->areabase.first; sa; sa= sa->next) {
|
||||||
SpaceLink *sl;
|
SpaceLink *sl;
|
||||||
|
|
||||||
for (sl= sa->spacedata.first; sl; sl= sl->next) {
|
for(sl= sa->spacedata.first; sl; sl= sl->next) {
|
||||||
sl->area= sa;
|
sl->area= sa;
|
||||||
|
|
||||||
if (sl->spacetype==SPACE_OOPS) {
|
if(sl->spacetype==SPACE_OOPS) {
|
||||||
SpaceOops *soops= (SpaceOops*) sl;
|
SpaceOops *soops= (SpaceOops *) sl;
|
||||||
|
|
||||||
/* patch for old files */
|
/* patch for old files */
|
||||||
if (soops->v2d.cur.xmin==soops->v2d.cur.xmax) {
|
if(soops->v2d.cur.xmin==soops->v2d.cur.xmax) {
|
||||||
extern void init_v2d_oops(View2D*);
|
extern void init_v2d_oops(View2D*);
|
||||||
init_v2d_oops(&soops->v2d);
|
init_v2d_oops(&soops->v2d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(sl->spacetype==SPACE_BUTS) {
|
||||||
|
SpaceButs *sbuts= (SpaceButs *)sl;
|
||||||
|
sbuts->re_align= 1; // force an align call, maybe new panels were added, also for after file reading
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sa->cursor= CURSOR_STD;
|
sa->cursor= CURSOR_STD;
|
||||||
|
|||||||
Reference in New Issue
Block a user