mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 16:26:42 +00:00 
			
		
		
		
	Removed NIF flag handling to replicate vanilla engine behaviour
This commit is contained in:
		
							parent
							
								
									2a5a574134
								
							
						
					
					
						commit
						86c25f5dba
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		|  | @ -245,11 +245,6 @@ void BulletNifLoader::handleNiTriShape(const Nif::NiTriShape *shape, int flags, | |||
| { | ||||
|     assert(shape != NULL); | ||||
| 
 | ||||
|     // Interpret flags
 | ||||
|     bool hidden    = (flags&Nif::NiNode::Flag_Hidden) != 0; | ||||
|     bool collide   = (flags&Nif::NiNode::Flag_MeshCollision) != 0; | ||||
|     bool bbcollide = (flags&Nif::NiNode::Flag_BBoxCollision) != 0; | ||||
| 
 | ||||
|     // If the object was marked "NCO" earlier, it shouldn't collide with
 | ||||
|     // anything. So don't do anything.
 | ||||
|     if ((flags & 0x800)) | ||||
|  | @ -257,10 +252,17 @@ void BulletNifLoader::handleNiTriShape(const Nif::NiTriShape *shape, int flags, | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     /* this is an improper way to handle NIF flags, see https://bugs.openmw.org/issues/4319#change-22066 for more details
 | ||||
|     // Interpret flags
 | ||||
|     bool hidden = (flags&Nif::NiNode::Flag_Hidden) != 0; | ||||
|     bool collide = (flags&Nif::NiNode::Flag_MeshCollision) != 0; | ||||
|     bool bbcollide = (flags&Nif::NiNode::Flag_BBoxCollision) != 0; | ||||
| 
 | ||||
|     if (!collide && !bbcollide && hidden) | ||||
|         // This mesh apparently isn't being used for anything, so don't
 | ||||
|         // bother setting it up.
 | ||||
|         return; | ||||
|         return;*/ | ||||
| 
 | ||||
|     if (!shape->skin.empty()) | ||||
|         isAnimated = false; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue