mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +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())
|
if (mShapeInstance->mAnimatedShapes.empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (mPtr.getRefData().getBaseNode() == nullptr)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
assert (mShapeInstance->getCollisionShape()->isCompound());
|
assert (mShapeInstance->getCollisionShape()->isCompound());
|
||||||
|
|
||||||
btCompoundShape* compound = static_cast<btCompoundShape*>(mShapeInstance->getCollisionShape());
|
btCompoundShape* compound = static_cast<btCompoundShape*>(mShapeInstance->getCollisionShape());
|
||||||
|
@ -122,6 +122,8 @@ namespace
|
|||||||
const ESM::RefNum& refnum = ptr.getCellRef().getRefNum();
|
const ESM::RefNum& refnum = ptr.getCellRef().getRefNum();
|
||||||
if (!refnum.hasContentFile() || pagedRefs.find(refnum) == pagedRefs.end())
|
if (!refnum.hasContentFile() || pagedRefs.find(refnum) == pagedRefs.end())
|
||||||
ptr.getClass().insertObjectRendering(ptr, model, rendering);
|
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);
|
setNodeRotation(ptr, rendering, rotation);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user