1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-05 10:43:15 +00:00

Print cell reference rotation and destination rotation in esmtool (#8874)

This commit is contained in:
Alexei Kotov 2025-12-21 11:11:36 +03:00
parent 4a062c09a4
commit cd97bc66c3

View file

@ -251,6 +251,8 @@ namespace
std::cout << " ID: " << ref.mRefID << '\n';
std::cout << " Position: (" << ref.mPos.pos[0] << ", " << ref.mPos.pos[1] << ", " << ref.mPos.pos[2]
<< ")\n";
std::cout << " Rotation: (" << ref.mPos.rot[0] << ", " << ref.mPos.rot[1] << ", " << ref.mPos.rot[2]
<< ")\n";
if (ref.mScale != 1.f)
std::cout << " Scale: " << ref.mScale << '\n';
if (!ref.mOwner.empty())
@ -277,6 +279,8 @@ namespace
{
std::cout << " Destination position: (" << ref.mDoorDest.pos[0] << ", " << ref.mDoorDest.pos[1]
<< ", " << ref.mDoorDest.pos[2] << ")\n";
std::cout << " Destination rotation: (" << ref.mDoorDest.rot[0] << ", " << ref.mDoorDest.rot[1]
<< ", " << ref.mDoorDest.rot[2] << ")\n";
if (!ref.mDestCell.empty())
std::cout << " Destination cell: " << ref.mDestCell << '\n';
}