code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
This commit is contained in:
		@@ -1530,7 +1530,7 @@ static void oceanbake_update(void *customdata, float progress, int *cancel)
 | 
			
		||||
	if (oceanbake_breakjob(oj))
 | 
			
		||||
		*cancel = 1;
 | 
			
		||||
	
 | 
			
		||||
	*(oj->do_update) = 1;
 | 
			
		||||
	*(oj->do_update) = TRUE;
 | 
			
		||||
	*(oj->progress) = progress;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -1546,7 +1546,7 @@ static void oceanbake_startjob(void *customdata, short *stop, short *do_update,
 | 
			
		||||
	
 | 
			
		||||
	BKE_bake_ocean(oj->ocean, oj->och, oceanbake_update, (void *)oj);
 | 
			
		||||
	
 | 
			
		||||
	*do_update = 1;
 | 
			
		||||
	*do_update = TRUE;
 | 
			
		||||
	*stop = 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user