forked from bartvdbraak/blender
Fix for #2689
When drawing many stars (or for certain slow gfx cards) you can press ESC to stop it from drawing. The variable set for this escape was not reset, causing a first F12 render to not work. (Ancient bug!). Added: redraw event for "Stars" button in worldbuttons.
This commit is contained in:
parent
88fa58c437
commit
7f3908af65
@ -1882,7 +1882,7 @@ static void world_panel_mistaph(World *wrld)
|
||||
uiBlockEndAlign(block);
|
||||
|
||||
uiBlockSetCol(block, TH_BUT_SETTING1);
|
||||
uiDefButS(block, TOG|BIT|1,B_DIFF, "Stars",160,120,140,19, &wrld->mode, 0, 0, 0, 0, "Toggles starfield generation");
|
||||
uiDefButS(block, TOG|BIT|1,REDRAWVIEW3D, "Stars",160,120,140,19, &wrld->mode, 0, 0, 0, 0, "Toggles starfield generation");
|
||||
uiBlockSetCol(block, TH_AUTO);
|
||||
|
||||
uiBlockBeginAlign(block);
|
||||
|
@ -1836,9 +1836,11 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
|
||||
drawfloor();
|
||||
if(G.vd->persp==2) {
|
||||
if(G.scene->world) {
|
||||
if(G.scene->world->mode & WO_STARS) RE_make_stars(star_stuff_init_func,
|
||||
star_stuff_vertex_func,
|
||||
star_stuff_term_func);
|
||||
if(G.scene->world->mode & WO_STARS) {
|
||||
RE_make_stars(star_stuff_init_func, star_stuff_vertex_func,
|
||||
star_stuff_term_func);
|
||||
G.afbreek= 0; /* silly, stars draw uses blender_test_break(), can cause render to stop */
|
||||
}
|
||||
}
|
||||
if(G.vd->flag & V3D_DISPBGPIC) draw_bgpic();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user