mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Adding currentLookAt to useragents table in SQLite. This complements the
MySQL change from http://opensimulator.org/mantis/view.php?id=2073
This commit is contained in:
@@ -813,6 +813,11 @@ namespace OpenSim.Data.SQLite
|
||||
Convert.ToSingle(row["currentPosY"]),
|
||||
Convert.ToSingle(row["currentPosZ"])
|
||||
);
|
||||
ua.LookAt = new Vector3(
|
||||
Convert.ToSingle(row["currentLookAtX"]),
|
||||
Convert.ToSingle(row["currentLookAtY"]),
|
||||
Convert.ToSingle(row["currentLookAtZ"])
|
||||
);
|
||||
return ua;
|
||||
}
|
||||
|
||||
@@ -838,6 +843,9 @@ namespace OpenSim.Data.SQLite
|
||||
row["currentPosX"] = ua.Position.X;
|
||||
row["currentPosY"] = ua.Position.Y;
|
||||
row["currentPosZ"] = ua.Position.Z;
|
||||
row["currentLookAtX"] = ua.LookAt.X;
|
||||
row["currentLookAtY"] = ua.LookAt.Y;
|
||||
row["currentLookAtZ"] = ua.LookAt.Z;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user