mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-13 22:36:35 -04:00
also for creatures
This commit is contained in:
parent
2df7ded814
commit
86783e8758
@ -871,7 +871,8 @@ namespace MWClass
|
||||
ptr.getRefData().setCustomData(nullptr);
|
||||
|
||||
// Reset to original position
|
||||
MWBase::Environment::get().getWorld()->moveObject(ptr, ptr.getCellRef().getPosition().asVec3());
|
||||
MWBase::Environment::get().getWorld()->moveObject(
|
||||
ptr, ptr.getCell()->getOriginCell(ptr), ptr.getCellRef().getPosition().asVec3());
|
||||
MWBase::Environment::get().getWorld()->rotateObject(
|
||||
ptr, ptr.getCellRef().getPosition().asRotationVec3(), MWBase::RotationFlag_none);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user