mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-02 02:04:31 +00:00
also for creatures
This commit is contained in:
parent
2df7ded814
commit
86783e8758
1 changed files with 2 additions and 1 deletions
|
|
@ -871,7 +871,8 @@ namespace MWClass
|
||||||
ptr.getRefData().setCustomData(nullptr);
|
ptr.getRefData().setCustomData(nullptr);
|
||||||
|
|
||||||
// Reset to original position
|
// 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(
|
MWBase::Environment::get().getWorld()->rotateObject(
|
||||||
ptr, ptr.getCellRef().getPosition().asRotationVec3(), MWBase::RotationFlag_none);
|
ptr, ptr.getCellRef().getPosition().asRotationVec3(), MWBase::RotationFlag_none);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue