fix(DB/Gameobject): Recalculate quaternion rotation values from orientation (#24617)
This commit is contained in:
parent
653136e311
commit
9b63cde7cb
8 changed files with 105 additions and 41 deletions
|
|
@ -332,7 +332,7 @@ public:
|
|||
|
||||
Map* map = object->GetMap();
|
||||
object->Relocate(object->GetPositionX(), object->GetPositionY(), object->GetPositionZ(), *oz);
|
||||
object->SetLocalRotationAngles(*oz, oy.value_or(0.0f), ox.value_or(0.0f));
|
||||
object->SetWorldRotationAngles(*oz, oy.value_or(0.0f), ox.value_or(0.0f));
|
||||
object->SaveToDB();
|
||||
|
||||
// Generate a completely new spawn with new guid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue