mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:56:39 +00:00 
			
		
		
		
	Merge branch 'animate_animated_objects' into 'master'
Unbreak animated objects (regression from !546) See merge request OpenMW/openmw!570
This commit is contained in:
		
						commit
						d984d13b1c
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		|  | @ -116,9 +116,6 @@ namespace MWPhysics | |||
|         if (mShapeInstance->mAnimatedShapes.empty()) | ||||
|             return false; | ||||
| 
 | ||||
|         if (mPtr.getRefData().getBaseNode() == nullptr) | ||||
|             return true; | ||||
| 
 | ||||
|         assert (mShapeInstance->getCollisionShape()->isCompound()); | ||||
| 
 | ||||
|         btCompoundShape* compound = static_cast<btCompoundShape*>(mShapeInstance->getCollisionShape()); | ||||
|  |  | |||
|  | @ -122,6 +122,8 @@ namespace | |||
|             const ESM::RefNum& refnum = ptr.getCellRef().getRefNum(); | ||||
|             if (!refnum.hasContentFile() || pagedRefs.find(refnum) == pagedRefs.end()) | ||||
|                 ptr.getClass().insertObjectRendering(ptr, model, rendering); | ||||
|             else | ||||
|                 ptr.getRefData().setBaseNode(new SceneUtil::PositionAttitudeTransform); // FIXME remove this when physics code is fixed not to depend on basenode
 | ||||
| 
 | ||||
|             setNodeRotation(ptr, rendering, rotation); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue