mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 04:45:32 +00:00
Update scaled agent half extents in navigator (bug #4763)
This commit is contained in:
parent
c066ee9dc5
commit
1f41d5721d
1 changed files with 6 additions and 0 deletions
|
@ -1328,9 +1328,15 @@ namespace MWWorld
|
|||
|
||||
void World::scaleObject (const Ptr& ptr, float scale)
|
||||
{
|
||||
if (mPhysics->getActor(ptr))
|
||||
mNavigator->removeAgent(getPathfindingHalfExtents(ptr));
|
||||
|
||||
ptr.getCellRef().setScale(scale);
|
||||
|
||||
mWorldScene->updateObjectScale(ptr);
|
||||
|
||||
if (mPhysics->getActor(ptr))
|
||||
mNavigator->addAgent(getPathfindingHalfExtents(ptr));
|
||||
}
|
||||
|
||||
void World::rotateObjectImp (const Ptr& ptr, const osg::Vec3f& rot, bool adjust)
|
||||
|
|
Loading…
Reference in a new issue