Adding currentLookAt to useragents table in SQLite. This complements the
MySQL change from http://opensimulator.org/mantis/view.php?id=20730.6.0-stable
parent
e94d6f12ee
commit
0ad5d8c0e7
|
@ -0,0 +1,7 @@
|
|||
BEGIN TRANSACTION;
|
||||
|
||||
ALTER TABLE useragents add currentLookAtX float not null default 128;
|
||||
ALTER TABLE useragents add currentLookAtY float not null default 128;
|
||||
ALTER TABLE useragents add currentLookAtZ float not null default 70;
|
||||
|
||||
COMMIT;
|
|
@ -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;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue