store sop pseudocrc and region cacheID on mysql ( others later)
parent
1002987aea
commit
87646f340b
|
@ -130,10 +130,6 @@ namespace OpenSim.Data.MySQL
|
||||||
|
|
||||||
// Eligibility check
|
// Eligibility check
|
||||||
//
|
//
|
||||||
// PrimFlags.Temporary is not used in OpenSim code and cannot
|
|
||||||
// be guaranteed to always be clear. Don't check it.
|
|
||||||
// if ((flags & (uint)PrimFlags.Temporary) != 0)
|
|
||||||
// return;
|
|
||||||
if ((flags & (uint)PrimFlags.TemporaryOnRez) != 0)
|
if ((flags & (uint)PrimFlags.TemporaryOnRez) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -188,7 +184,7 @@ namespace OpenSim.Data.MySQL
|
||||||
"AttachedPosY, AttachedPosZ, " +
|
"AttachedPosY, AttachedPosZ, " +
|
||||||
"PhysicsShapeType, Density, GravityModifier, " +
|
"PhysicsShapeType, Density, GravityModifier, " +
|
||||||
"Friction, Restitution, Vehicle, PhysInertia, DynAttrs, " +
|
"Friction, Restitution, Vehicle, PhysInertia, DynAttrs, " +
|
||||||
"RotationAxisLocks, sopanims, sitactrange" +
|
"RotationAxisLocks, sopanims, sitactrange, pseudocrc" +
|
||||||
") values (" + "?UUID, " +
|
") values (" + "?UUID, " +
|
||||||
"?CreationDate, ?Name, ?Text, " +
|
"?CreationDate, ?Name, ?Text, " +
|
||||||
"?Description, ?SitName, ?TouchName, " +
|
"?Description, ?SitName, ?TouchName, " +
|
||||||
|
@ -224,7 +220,7 @@ namespace OpenSim.Data.MySQL
|
||||||
"?AttachedPosY, ?AttachedPosZ, " +
|
"?AttachedPosY, ?AttachedPosZ, " +
|
||||||
"?PhysicsShapeType, ?Density, ?GravityModifier, " +
|
"?PhysicsShapeType, ?Density, ?GravityModifier, " +
|
||||||
"?Friction, ?Restitution, ?Vehicle, ?PhysInertia, ?DynAttrs," +
|
"?Friction, ?Restitution, ?Vehicle, ?PhysInertia, ?DynAttrs," +
|
||||||
"?RotationAxisLocks, ?sopanims, ?sitactrange)";
|
"?RotationAxisLocks, ?sopanims, ?sitactrange, ?pseudocrc)";
|
||||||
|
|
||||||
FillPrimCommand(cmd, prim, obj.UUID, regionUUID);
|
FillPrimCommand(cmd, prim, obj.UUID, regionUUID);
|
||||||
|
|
||||||
|
@ -1229,7 +1225,7 @@ namespace OpenSim.Data.MySQL
|
||||||
"covenant, covenant_datetime, Sandbox, sunvectorx, sunvectory, " +
|
"covenant, covenant_datetime, Sandbox, sunvectorx, sunvectory, " +
|
||||||
"sunvectorz, loaded_creation_datetime, " +
|
"sunvectorz, loaded_creation_datetime, " +
|
||||||
"loaded_creation_id, map_tile_ID, block_search, casino, " +
|
"loaded_creation_id, map_tile_ID, block_search, casino, " +
|
||||||
"TelehubObject, parcel_tile_ID) " +
|
"TelehubObject, parcel_tile_ID, cacheID) " +
|
||||||
"values (?RegionUUID, ?BlockTerraform, " +
|
"values (?RegionUUID, ?BlockTerraform, " +
|
||||||
"?BlockFly, ?AllowDamage, ?RestrictPushing, " +
|
"?BlockFly, ?AllowDamage, ?RestrictPushing, " +
|
||||||
"?AllowLandResell, ?AllowLandJoinDivide, " +
|
"?AllowLandResell, ?AllowLandJoinDivide, " +
|
||||||
|
@ -1246,7 +1242,7 @@ namespace OpenSim.Data.MySQL
|
||||||
"?SunVectorX, ?SunVectorY, ?SunVectorZ, " +
|
"?SunVectorX, ?SunVectorY, ?SunVectorZ, " +
|
||||||
"?LoadedCreationDateTime, ?LoadedCreationID, " +
|
"?LoadedCreationDateTime, ?LoadedCreationID, " +
|
||||||
"?TerrainImageID, ?block_search, ?casino, " +
|
"?TerrainImageID, ?block_search, ?casino, " +
|
||||||
"?TelehubObject, ?ParcelImageID)";
|
"?TelehubObject, ?ParcelImageID, ?cacheID)";
|
||||||
|
|
||||||
FillRegionSettingsCommand(cmd, rs);
|
FillRegionSettingsCommand(cmd, rs);
|
||||||
ExecuteNonQuery(cmd);
|
ExecuteNonQuery(cmd);
|
||||||
|
@ -1523,6 +1519,10 @@ namespace OpenSim.Data.MySQL
|
||||||
|
|
||||||
prim.SitActiveRange = (float)row["sitactrange"];
|
prim.SitActiveRange = (float)row["sitactrange"];
|
||||||
|
|
||||||
|
int pseudocrc = (int)row["pseudocrc"];
|
||||||
|
if(pseudocrc != 0)
|
||||||
|
prim.PseudoCRC = pseudocrc;
|
||||||
|
|
||||||
return prim;
|
return prim;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1627,6 +1627,8 @@ namespace OpenSim.Data.MySQL
|
||||||
newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]);
|
newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]);
|
||||||
newSettings.Casino = Convert.ToBoolean(row["casino"]);
|
newSettings.Casino = Convert.ToBoolean(row["casino"]);
|
||||||
|
|
||||||
|
if (!(row["cacheID"] is DBNull))
|
||||||
|
newSettings.CacheID = DBGuid.FromDB(row["cacheID"]);
|
||||||
return newSettings;
|
return newSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1914,6 +1916,7 @@ namespace OpenSim.Data.MySQL
|
||||||
cmd.Parameters.AddWithValue("sopanims", null);
|
cmd.Parameters.AddWithValue("sopanims", null);
|
||||||
|
|
||||||
cmd.Parameters.AddWithValue("sitactrange", prim.SitActiveRange);
|
cmd.Parameters.AddWithValue("sitactrange", prim.SitActiveRange);
|
||||||
|
cmd.Parameters.AddWithValue("pseudocrc", prim.PseudoCRC);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1997,6 +2000,7 @@ namespace OpenSim.Data.MySQL
|
||||||
|
|
||||||
cmd.Parameters.AddWithValue("ParcelImageID", settings.ParcelImageID);
|
cmd.Parameters.AddWithValue("ParcelImageID", settings.ParcelImageID);
|
||||||
cmd.Parameters.AddWithValue("TelehubObject", settings.TelehubObject);
|
cmd.Parameters.AddWithValue("TelehubObject", settings.TelehubObject);
|
||||||
|
cmd.Parameters.AddWithValue("cacheID", settings.CacheID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -533,3 +533,9 @@ MODIFY `AttachedPosZ` float DEFAULT '0',
|
||||||
MODIFY `LoopedSoundGain` float DEFAULT '0';
|
MODIFY `LoopedSoundGain` float DEFAULT '0';
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 61 #----- Add pseudo CRC and region cache id
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
ALTER TABLE `prims` ADD COLUMN `pseudocrc` int DEFAULT '0';
|
||||||
|
ALTER TABLE `regionsettings` ADD COLUMN `cacheID` char(36) DEFAULT NULL;
|
||||||
|
COMMIT;
|
||||||
|
|
Loading…
Reference in New Issue