correct misc warnings
This commit is contained in:
		@@ -1944,6 +1944,11 @@ static void applyGrid(TransInfo *t, float *val, int max_index, float fac[3], Gea
 | 
			
		||||
	int i;
 | 
			
		||||
	float asp[3] = {1.0f, 1.0f, 1.0f}; // TODO: Remove hard coded limit here (3)
 | 
			
		||||
 | 
			
		||||
	if(max_index > 3) {
 | 
			
		||||
		printf("applyGrid: invalid index %d, clamping\n", max_index);
 | 
			
		||||
		max_index= 3;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Early bailing out if no need to snap
 | 
			
		||||
	if (fac[action] == 0.0f)
 | 
			
		||||
		return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user