diff options
author | Melanie | 2012-05-15 02:36:11 +0200 |
---|---|---|
committer | Melanie | 2012-05-15 02:36:11 +0200 |
commit | 995cd25f3027e1debb0ae5fc60b5dde831c31d17 (patch) | |
tree | f8a76f4d545c0753dd0cdf3fd1909be83810d552 /OpenSim/Data | |
parent | don't send colision events to volume detectors (diff) | |
download | opensim-SC_OLD-995cd25f3027e1debb0ae5fc60b5dde831c31d17.zip opensim-SC_OLD-995cd25f3027e1debb0ae5fc60b5dde831c31d17.tar.gz opensim-SC_OLD-995cd25f3027e1debb0ae5fc60b5dde831c31d17.tar.bz2 opensim-SC_OLD-995cd25f3027e1debb0ae5fc60b5dde831c31d17.tar.xz |
Port the mel/dahlia fix
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 33c184f..ec7a454 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -170,6 +170,7 @@ namespace OpenSim.Data.MySQL | |||
170 | "ParticleSystem, ClickAction, Material, " + | 170 | "ParticleSystem, ClickAction, Material, " + |
171 | "CollisionSound, CollisionSoundVolume, " + | 171 | "CollisionSound, CollisionSoundVolume, " + |
172 | "PassTouches, " + | 172 | "PassTouches, " + |
173 | "PassCollisions, " + | ||
173 | "LinkNumber, MediaURL, KeyframeMotion, " + | 174 | "LinkNumber, MediaURL, KeyframeMotion, " + |
174 | "PhysicsShapeType, Density, GravityModifier, " + | 175 | "PhysicsShapeType, Density, GravityModifier, " + |
175 | "Friction, Restitution) values (" + "?UUID, " + | 176 | "Friction, Restitution) values (" + "?UUID, " + |
@@ -203,7 +204,7 @@ namespace OpenSim.Data.MySQL | |||
203 | "?SaleType, ?ColorR, ?ColorG, " + | 204 | "?SaleType, ?ColorR, ?ColorG, " + |
204 | "?ColorB, ?ColorA, ?ParticleSystem, " + | 205 | "?ColorB, ?ColorA, ?ParticleSystem, " + |
205 | "?ClickAction, ?Material, ?CollisionSound, " + | 206 | "?ClickAction, ?Material, ?CollisionSound, " + |
206 | "?CollisionSoundVolume, ?PassTouches, " + | 207 | "?CollisionSoundVolume, ?PassTouches, ?PassCollisions, " + |
207 | "?LinkNumber, ?MediaURL, ?KeyframeMotion, " + | 208 | "?LinkNumber, ?MediaURL, ?KeyframeMotion, " + |
208 | "?PhysicsShapeType, ?Density, ?GravityModifier, " + | 209 | "?PhysicsShapeType, ?Density, ?GravityModifier, " + |
209 | "?Friction, ?Restitution)"; | 210 | "?Friction, ?Restitution)"; |
@@ -1231,6 +1232,7 @@ namespace OpenSim.Data.MySQL | |||
1231 | prim.CollisionSoundVolume = (float)(double)row["CollisionSoundVolume"]; | 1232 | prim.CollisionSoundVolume = (float)(double)row["CollisionSoundVolume"]; |
1232 | 1233 | ||
1233 | prim.PassTouches = ((sbyte)row["PassTouches"] != 0); | 1234 | prim.PassTouches = ((sbyte)row["PassTouches"] != 0); |
1235 | prim.PassCollisions = ((sbyte)row["PassCollisions"] != 0); | ||
1234 | prim.LinkNum = (int)row["LinkNumber"]; | 1236 | prim.LinkNum = (int)row["LinkNumber"]; |
1235 | 1237 | ||
1236 | if (!(row["MediaURL"] is System.DBNull)) | 1238 | if (!(row["MediaURL"] is System.DBNull)) |
@@ -1605,6 +1607,11 @@ namespace OpenSim.Data.MySQL | |||
1605 | else | 1607 | else |
1606 | cmd.Parameters.AddWithValue("PassTouches", 0); | 1608 | cmd.Parameters.AddWithValue("PassTouches", 0); |
1607 | 1609 | ||
1610 | if (prim.PassCollisions) | ||
1611 | cmd.Parameters.AddWithValue("PassCollisions", 1); | ||
1612 | else | ||
1613 | cmd.Parameters.AddWithValue("PassCollisions", 0); | ||
1614 | |||
1608 | cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum); | 1615 | cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum); |
1609 | cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl); | 1616 | cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl); |
1610 | 1617 | ||