mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 17:26:42 +00:00 
			
		
		
		
	NifLoader: fall back to the first UV set when encountering invalid UV set references
This commit is contained in:
		
							parent
							
								
									fce43854bc
								
							
						
					
					
						commit
						723c392a73
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -963,7 +963,9 @@ namespace NifOsg | |||
|                 int uvSet = *it; | ||||
|                 if (uvSet >= (int)data->uvlist.size()) | ||||
|                 { | ||||
|                     std::cerr << "Warning: using an undefined UV set " << uvSet << " on TriShape \"" << triShape->name << "\" in " << mFilename << std::endl; | ||||
|                     std::cerr << "Warning: out of bounds UV set " << uvSet << " on TriShape \"" << triShape->name << "\" in " << mFilename << std::endl; | ||||
|                     if (data->uvlist.size()) | ||||
|                         geometry->setTexCoordArray(textureStage, data->uvlist[0]); | ||||
|                     continue; | ||||
|                 } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue