Fix for bug #2152
Using File->Save Image menu didn't work while Stars were drawn... the used method to save an image (mainqenter F3 key) is a bit awkward anyway, so replaced with proper BIF_xxx call. Reason for mainqenter not to work was RE_draw_stars() function calling a blender_test_break(), swallowing queue events. Very bad and need review. Small tweak in previewrender; preview type Cube now displays texture coordinates better (it showed a bit too much)
This commit is contained in:
@@ -205,9 +205,9 @@ static int ray_previewrender(int x, int y, float *vec, float *vn)
|
||||
|
||||
CalcNormFloat(rcubev[rcubi[hitface][0]], rcubev[rcubi[hitface][1]], rcubev[rcubi[hitface][2]], vn);
|
||||
|
||||
vec[0]= (minlabda*(ray1[0]-ray2[0])+ray2[0])/3.7;
|
||||
vec[1]= (minlabda*(ray1[1]-ray2[1])+ray2[1])/3.7;
|
||||
vec[2]= (minlabda*(ray1[2]-ray2[2])+ray2[2])/3.7;
|
||||
vec[0]= (minlabda*(ray1[0]-ray2[0])+ray2[0])/4.1;
|
||||
vec[1]= (minlabda*(ray1[1]-ray2[1])+ray2[1])/4.1;
|
||||
vec[2]= (minlabda*(ray1[2]-ray2[2])+ray2[2])/4.1;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user