diff options
author | AliciaRaven | 2015-03-31 12:35:55 +0100 |
---|---|---|
committer | Michael Cerquoni | 2015-04-12 15:36:22 -0400 |
commit | 1e444b1449ffad4969709c039f7c606c9f8f484d (patch) | |
tree | 51187c4212cc2397a9b6c1af9a657cba0335a734 /OpenSim/Data | |
parent | Fix llTargetOmega non-physical gain. (diff) | |
download | opensim-SC_OLD-1e444b1449ffad4969709c039f7c606c9f8f484d.zip opensim-SC_OLD-1e444b1449ffad4969709c039f7c606c9f8f484d.tar.gz opensim-SC_OLD-1e444b1449ffad4969709c039f7c606c9f8f484d.tar.bz2 opensim-SC_OLD-1e444b1449ffad4969709c039f7c606c9f8f484d.tar.xz |
Change UserProfiles so that the parcel name is used for a ProfilePick and not the parcel owners name. This change also fixes a bug where if the avatar enters and does not move, creating or editing a ProfilePick would set the parcelId as an empty UUID. This is because ScenePresence.currentParcelUUID is not set until the avatar moves.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 6 | ||||
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs | 4 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index 86f2efe..b35595d 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |||
@@ -402,7 +402,7 @@ namespace OpenSim.Data.MySQL | |||
402 | bool.TryParse((string)reader["enabled"], out pick.Enabled); | 402 | bool.TryParse((string)reader["enabled"], out pick.Enabled); |
403 | pick.Name = (string)reader["name"]; | 403 | pick.Name = (string)reader["name"]; |
404 | pick.Desc = description; | 404 | pick.Desc = description; |
405 | pick.User = (string)reader["user"]; | 405 | pick.ParcelName = (string)reader["user"]; |
406 | pick.OriginalName = (string)reader["originalname"]; | 406 | pick.OriginalName = (string)reader["originalname"]; |
407 | pick.SimName = (string)reader["simname"]; | 407 | pick.SimName = (string)reader["simname"]; |
408 | pick.SortOrder = (int)reader["sortorder"]; | 408 | pick.SortOrder = (int)reader["sortorder"]; |
@@ -443,6 +443,8 @@ namespace OpenSim.Data.MySQL | |||
443 | query += "parceluuid=?ParcelId,"; | 443 | query += "parceluuid=?ParcelId,"; |
444 | query += "name=?Name,"; | 444 | query += "name=?Name,"; |
445 | query += "description=?Desc,"; | 445 | query += "description=?Desc,"; |
446 | query += "user=?User,"; | ||
447 | query += "simname=?SimName,"; | ||
446 | query += "snapshotuuid=?SnapshotId,"; | 448 | query += "snapshotuuid=?SnapshotId,"; |
447 | query += "pickuuid=?PickId,"; | 449 | query += "pickuuid=?PickId,"; |
448 | query += "posglobal=?GlobalPos,"; | 450 | query += "posglobal=?GlobalPos,"; |
@@ -462,7 +464,7 @@ namespace OpenSim.Data.MySQL | |||
462 | cmd.Parameters.AddWithValue("?Name", pick.Name.ToString()); | 464 | cmd.Parameters.AddWithValue("?Name", pick.Name.ToString()); |
463 | cmd.Parameters.AddWithValue("?Desc", pick.Desc.ToString()); | 465 | cmd.Parameters.AddWithValue("?Desc", pick.Desc.ToString()); |
464 | cmd.Parameters.AddWithValue("?SnapshotId", pick.SnapshotId.ToString()); | 466 | cmd.Parameters.AddWithValue("?SnapshotId", pick.SnapshotId.ToString()); |
465 | cmd.Parameters.AddWithValue("?User", pick.User.ToString()); | 467 | cmd.Parameters.AddWithValue("?User", pick.ParcelName.ToString()); |
466 | cmd.Parameters.AddWithValue("?Original", pick.OriginalName.ToString()); | 468 | cmd.Parameters.AddWithValue("?Original", pick.OriginalName.ToString()); |
467 | cmd.Parameters.AddWithValue("?SimName",pick.SimName.ToString()); | 469 | cmd.Parameters.AddWithValue("?SimName",pick.SimName.ToString()); |
468 | cmd.Parameters.AddWithValue("?GlobalPos", pick.GlobalPos); | 470 | cmd.Parameters.AddWithValue("?GlobalPos", pick.GlobalPos); |
diff --git a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs index d00c3cf..a003e07 100644 --- a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs +++ b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs | |||
@@ -385,7 +385,7 @@ namespace OpenSim.Data.PGSQL | |||
385 | pick.Enabled = Convert.ToBoolean(reader["enabled"]); | 385 | pick.Enabled = Convert.ToBoolean(reader["enabled"]); |
386 | pick.Name = reader["name"].ToString (); | 386 | pick.Name = reader["name"].ToString (); |
387 | pick.Desc = reader["description"].ToString(); | 387 | pick.Desc = reader["description"].ToString(); |
388 | pick.User = reader["user"].ToString(); | 388 | pick.ParcelName = reader["user"].ToString(); |
389 | pick.OriginalName = reader["originalname"].ToString(); | 389 | pick.OriginalName = reader["originalname"].ToString(); |
390 | pick.SimName = reader["simname"].ToString(); | 390 | pick.SimName = reader["simname"].ToString(); |
391 | pick.SortOrder = (int)reader["sortorder"]; | 391 | pick.SortOrder = (int)reader["sortorder"]; |
@@ -437,7 +437,7 @@ namespace OpenSim.Data.PGSQL | |||
437 | cmd.Parameters.Add(m_database.CreateParameter("Name", pick.Name)); | 437 | cmd.Parameters.Add(m_database.CreateParameter("Name", pick.Name)); |
438 | cmd.Parameters.Add(m_database.CreateParameter("Desc", pick.Desc)); | 438 | cmd.Parameters.Add(m_database.CreateParameter("Desc", pick.Desc)); |
439 | cmd.Parameters.Add(m_database.CreateParameter("SnapshotId", pick.SnapshotId)); | 439 | cmd.Parameters.Add(m_database.CreateParameter("SnapshotId", pick.SnapshotId)); |
440 | cmd.Parameters.Add(m_database.CreateParameter("User", pick.User)); | 440 | cmd.Parameters.Add(m_database.CreateParameter("User", pick.ParcelName)); |
441 | cmd.Parameters.Add(m_database.CreateParameter("Original", pick.OriginalName)); | 441 | cmd.Parameters.Add(m_database.CreateParameter("Original", pick.OriginalName)); |
442 | cmd.Parameters.Add(m_database.CreateParameter("SimName",pick.SimName)); | 442 | cmd.Parameters.Add(m_database.CreateParameter("SimName",pick.SimName)); |
443 | cmd.Parameters.Add(m_database.CreateParameter("GlobalPos", pick.GlobalPos)); | 443 | cmd.Parameters.Add(m_database.CreateParameter("GlobalPos", pick.GlobalPos)); |
diff --git a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs index 790843b..cd3e8b6 100644 --- a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | |||
@@ -368,7 +368,7 @@ namespace OpenSim.Data.SQLite | |||
368 | bool.TryParse((string)reader["enabled"].ToString(), out pick.Enabled); | 368 | bool.TryParse((string)reader["enabled"].ToString(), out pick.Enabled); |
369 | pick.Name = (string)reader["name"]; | 369 | pick.Name = (string)reader["name"]; |
370 | pick.Desc = description; | 370 | pick.Desc = description; |
371 | pick.User = (string)reader["user"]; | 371 | pick.ParcelName = (string)reader["user"]; |
372 | pick.OriginalName = (string)reader["originalname"]; | 372 | pick.OriginalName = (string)reader["originalname"]; |
373 | pick.SimName = (string)reader["simname"]; | 373 | pick.SimName = (string)reader["simname"]; |
374 | pick.SortOrder = (int)reader["sortorder"]; | 374 | pick.SortOrder = (int)reader["sortorder"]; |
@@ -434,7 +434,7 @@ namespace OpenSim.Data.SQLite | |||
434 | cmd.Parameters.AddWithValue(":Name", pick.Name.ToString()); | 434 | cmd.Parameters.AddWithValue(":Name", pick.Name.ToString()); |
435 | cmd.Parameters.AddWithValue(":Desc", pick.Desc.ToString()); | 435 | cmd.Parameters.AddWithValue(":Desc", pick.Desc.ToString()); |
436 | cmd.Parameters.AddWithValue(":SnapshotId", pick.SnapshotId.ToString()); | 436 | cmd.Parameters.AddWithValue(":SnapshotId", pick.SnapshotId.ToString()); |
437 | cmd.Parameters.AddWithValue(":User", pick.User.ToString()); | 437 | cmd.Parameters.AddWithValue(":User", pick.ParcelName.ToString()); |
438 | cmd.Parameters.AddWithValue(":Original", pick.OriginalName.ToString()); | 438 | cmd.Parameters.AddWithValue(":Original", pick.OriginalName.ToString()); |
439 | cmd.Parameters.AddWithValue(":SimName",pick.SimName.ToString()); | 439 | cmd.Parameters.AddWithValue(":SimName",pick.SimName.ToString()); |
440 | cmd.Parameters.AddWithValue(":GlobalPos", pick.GlobalPos); | 440 | cmd.Parameters.AddWithValue(":GlobalPos", pick.GlobalPos); |