Changeset - 1c295ac850fd
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-06 19:59:05

Formatting
1 file changed with 5 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -333,13 +333,12 @@ int frame_finder(){
 
	int frameset_count = 0; // the frameset number, note* frames in an animation don't start at zero
 
	short int done = 0;
 
	int priority = 10;
 

	
 
	while(priority >= 1){ // start the scan for the next job with the highest priority
 
		finder_jobnum = hcfjob + 1; // reset it to start scanning at first uncompleted job for the pass at each priority level
 

	
 
		while(finder_jobnum <= highest_jobnum){
 
			if(blendjob[finder_jobnum].priority = priority){  // looks for a job with the current priority value
 
				done = 1;									  // notice it starts by looking at the oldest job first
 
				break;
 
			}
 

	
 
@@ -359,20 +358,20 @@ int frame_finder(){
 
		if (blendjob[finder_jobnum].frame_status[frameset_count] = 0)  // If frame that is not assigned has been found, frameset_count is not changed
 
			break;																// and frameset_count is used to give the frame number later in this funciton
 

	
 
		x++;  // If frame is assigned or done, it goes to next frame
 
	}
 

	
 
blendjob[jobnum].frame_status[x]++; // sets the value of the frame to 2, which means its taken
 
	blendjob[jobnum].frame_status[x]++; // sets the value of the frame to 2, which means its taken
 

	
 
your_frame = blendjob[jobnum].frame_num[x]; //  Takes the frameset found in the while statement above, and extracts the frame number from it and assigns it to the int your_frame
 
	your_frame = blendjob[jobnum].frame_num[x]; //  Takes the frameset found in the while statement above, and extracts the frame number from it and assigns it to the int your_frame
 

	
 
if(your_frame = null)  // If that job had no open frames for some reason, run the status report generator so that
 
	status_report_generator();  //the job priority can be changed to 0
 
	if(your_frame = null)  // If that job had no open frames for some reason, run the status report generator so that
 
		status_report_generator();  //the job priority can be changed to 0
 

	
 
return your_frame; // your_frame is returned as the frame to be rendered
 
	return your_frame; // your_frame is returned as the frame to be rendered
 
}
 

	
 

	
 

	
 

	
 
// This figures out how much of the job is done, where jobnum corresponds to the job number
0 comments (0 inline, 0 general)