mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 16:10:58 +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
@ -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 New Issue
Block a user