mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Merge branch 'xanimphysics' into 'master'
Fix animated object physics Closes #7164 See merge request OpenMW/openmw!2623
This commit is contained in:
commit
a7e37509de
@ -496,7 +496,11 @@ namespace MWPhysics
|
||||
{
|
||||
if (ptr.mRef->mData.mPhysicsPostponed)
|
||||
return;
|
||||
osg::ref_ptr<Resource::BulletShapeInstance> shapeInstance = mShapeManager->getInstance(mesh);
|
||||
|
||||
std::string animationMesh = mesh;
|
||||
if (ptr.getClass().useAnim())
|
||||
animationMesh = Misc::ResourceHelpers::correctActorModelPath(mesh, mResourceSystem->getVFS());
|
||||
osg::ref_ptr<Resource::BulletShapeInstance> shapeInstance = mShapeManager->getInstance(animationMesh);
|
||||
if (!shapeInstance || !shapeInstance->mCollisionShape)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user