diff options
author | Mic Bowman | 2013-02-08 22:43:56 -0800 |
---|---|---|
committer | Mic Bowman | 2013-02-08 22:43:56 -0800 |
commit | 0a297a0e52b673427ff61b254f6065c217b1375d (patch) | |
tree | aa337fff2dfda8677a7a76eb08b76a1d07df178a /OpenSim/Data/MySQL/MySQLSimulationData.cs | |
parent | Make JsonStore path parsing more robust. Should fix the (diff) | |
parent | Fixed ReadSculptData(): the check whether there are enough bytes to read was ... (diff) | |
download | opensim-SC-0a297a0e52b673427ff61b254f6065c217b1375d.zip opensim-SC-0a297a0e52b673427ff61b254f6065c217b1375d.tar.gz opensim-SC-0a297a0e52b673427ff61b254f6065c217b1375d.tar.bz2 opensim-SC-0a297a0e52b673427ff61b254f6065c217b1375d.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLSimulationData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 1b02b4f..9cc6f40 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -173,9 +173,9 @@ namespace OpenSim.Data.MySQL | |||
173 | "ParticleSystem, ClickAction, Material, " + | 173 | "ParticleSystem, ClickAction, Material, " + |
174 | "CollisionSound, CollisionSoundVolume, " + | 174 | "CollisionSound, CollisionSoundVolume, " + |
175 | "PassTouches, " + | 175 | "PassTouches, " + |
176 | "LinkNumber, MediaURL, " + | 176 | "LinkNumber, MediaURL, DynAttrs, " + |
177 | "PhysicsShapeType, Density, GravityModifier, " + | 177 | "PhysicsShapeType, Density, GravityModifier, " + |
178 | "Friction, Restitution, DynAttrs " + | 178 | "Friction, Restitution " + |
179 | ") values (" + "?UUID, " + | 179 | ") values (" + "?UUID, " + |
180 | "?CreationDate, ?Name, ?Text, " + | 180 | "?CreationDate, ?Name, ?Text, " + |
181 | "?Description, ?SitName, ?TouchName, " + | 181 | "?Description, ?SitName, ?TouchName, " + |
@@ -208,9 +208,9 @@ namespace OpenSim.Data.MySQL | |||
208 | "?ColorB, ?ColorA, ?ParticleSystem, " + | 208 | "?ColorB, ?ColorA, ?ParticleSystem, " + |
209 | "?ClickAction, ?Material, ?CollisionSound, " + | 209 | "?ClickAction, ?Material, ?CollisionSound, " + |
210 | "?CollisionSoundVolume, ?PassTouches, " + | 210 | "?CollisionSoundVolume, ?PassTouches, " + |
211 | "?LinkNumber, ?MediaURL, " + | 211 | "?LinkNumber, ?MediaURL, ?DynAttrs, " + |
212 | "?PhysicsShapeType, ?Density, ?GravityModifier, " + | 212 | "?PhysicsShapeType, ?Density, ?GravityModifier, " + |
213 | "?Friction, ?Restitution, ?DynAttrs)"; | 213 | "?Friction, ?Restitution)"; |
214 | 214 | ||
215 | FillPrimCommand(cmd, prim, obj.UUID, regionUUID); | 215 | FillPrimCommand(cmd, prim, obj.UUID, regionUUID); |
216 | 216 | ||
@@ -1659,16 +1659,17 @@ namespace OpenSim.Data.MySQL | |||
1659 | cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum); | 1659 | cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum); |
1660 | cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl); | 1660 | cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl); |
1661 | 1661 | ||
1662 | cmd.Parameters.AddWithValue("PhysicsShapeType", prim.PhysicsShapeType); | ||
1663 | cmd.Parameters.AddWithValue("Density", (double)prim.Density); | ||
1664 | cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier); | ||
1665 | cmd.Parameters.AddWithValue("Friction", (double)prim.Friction); | ||
1666 | cmd.Parameters.AddWithValue("Restitution", (double)prim.Restitution); | ||
1667 | 1662 | ||
1668 | if (prim.DynAttrs.Count > 0) | 1663 | if (prim.DynAttrs.Count > 0) |
1669 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); | 1664 | cmd.Parameters.AddWithValue("DynAttrs", prim.DynAttrs.ToXml()); |
1670 | else | 1665 | else |
1671 | cmd.Parameters.AddWithValue("DynAttrs", null); | 1666 | cmd.Parameters.AddWithValue("DynAttrs", null); |
1667 | |||
1668 | cmd.Parameters.AddWithValue("PhysicsShapeType", prim.PhysicsShapeType); | ||
1669 | cmd.Parameters.AddWithValue("Density", (double)prim.Density); | ||
1670 | cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier); | ||
1671 | cmd.Parameters.AddWithValue("Friction", (double)prim.Friction); | ||
1672 | cmd.Parameters.AddWithValue("Restitution", (double)prim.Restitution); | ||
1672 | } | 1673 | } |
1673 | 1674 | ||
1674 | /// <summary> | 1675 | /// <summary> |