mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Bugfix: some binary STL files were not correctly parsed on Windows. #1370 1467
This commit is contained in:
		
							parent
							
								
									3464e646f7
								
							
						
					
					
						commit
						e62ef35fbf
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -98,6 +98,9 @@ stl_count_facets(stl_file *stl, char *file) | |||
|       if(chtest[i] > 127) | ||||
| 	{ | ||||
| 	  stl->stats.type = binary; | ||||
| 	  // close and reopen with binary flag (needed on Windows)
 | ||||
| 	  fclose(stl->fp); | ||||
| 	  stl->fp = fopen(file, "rb"); | ||||
| 	  break; | ||||
| 	} | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci