mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Merge branch 'unbreak_actors_loading' into 'master'
Unbreak floating corpses and spawn Closes #5735 See merge request OpenMW/openmw!457
This commit is contained in:
commit
264a6e0269
@ -253,7 +253,7 @@ namespace
|
|||||||
bool operator() (const MWWorld::Ptr& ptr)
|
bool operator() (const MWWorld::Ptr& ptr)
|
||||||
{
|
{
|
||||||
if (!ptr.getRefData().isDeleted() && ptr.getRefData().isEnabled())
|
if (!ptr.getRefData().isDeleted() && ptr.getRefData().isEnabled())
|
||||||
ptr.getClass().adjustPosition (ptr, true);
|
ptr.getClass().adjustPosition (ptr, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1344,12 +1344,8 @@ namespace MWWorld
|
|||||||
}
|
}
|
||||||
|
|
||||||
moveObject(ptr, ptr.getCell(), pos.x(), pos.y(), pos.z());
|
moveObject(ptr, ptr.getCell(), pos.x(), pos.y(), pos.z());
|
||||||
if (force) // force physics to use the new position
|
if (ptr.getClass().isActor())
|
||||||
{
|
mPhysics->getActor(ptr)->resetPosition();
|
||||||
auto actor = mPhysics->getActor(ptr);
|
|
||||||
if(actor)
|
|
||||||
actor->resetPosition();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void World::fixPosition()
|
void World::fixPosition()
|
||||||
|
Loading…
Reference in New Issue
Block a user