aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index 1197548..3b53478 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -170,7 +170,9 @@ namespace OpenSim.Data.MySQL
170 "ParticleSystem, ClickAction, Material, " + 170 "ParticleSystem, ClickAction, Material, " +
171 "CollisionSound, CollisionSoundVolume, " + 171 "CollisionSound, CollisionSoundVolume, " +
172 "PassTouches, " + 172 "PassTouches, " +
173 "LinkNumber, MediaURL, KeyframeMotion) values (" + "?UUID, " + 173 "LinkNumber, MediaURL, KeyframeMotion, " +
174 "PhysicsShapeType, Density, GravityModifier, " +
175 "Friction, Restitution) values (" + "?UUID, " +
174 "?CreationDate, ?Name, ?Text, " + 176 "?CreationDate, ?Name, ?Text, " +
175 "?Description, ?SitName, ?TouchName, " + 177 "?Description, ?SitName, ?TouchName, " +
176 "?ObjectFlags, ?OwnerMask, ?NextOwnerMask, " + 178 "?ObjectFlags, ?OwnerMask, ?NextOwnerMask, " +
@@ -201,7 +203,10 @@ namespace OpenSim.Data.MySQL
201 "?SaleType, ?ColorR, ?ColorG, " + 203 "?SaleType, ?ColorR, ?ColorG, " +
202 "?ColorB, ?ColorA, ?ParticleSystem, " + 204 "?ColorB, ?ColorA, ?ParticleSystem, " +
203 "?ClickAction, ?Material, ?CollisionSound, " + 205 "?ClickAction, ?Material, ?CollisionSound, " +
204 "?CollisionSoundVolume, ?PassTouches, ?LinkNumber, ?MediaURL, ?KeyframeMotion)"; 206 "?CollisionSoundVolume, ?PassTouches, " +
207 "?LinkNumber, ?MediaURL, ?KeyframeMotion, " +
208 "?PhysicsShapeType, ?Density, ?GravityModifier, " +
209 "?Friction, ?Restitution)";
205 210
206 FillPrimCommand(cmd, prim, obj.UUID, regionUUID); 211 FillPrimCommand(cmd, prim, obj.UUID, regionUUID);
207 212
@@ -1243,6 +1248,13 @@ namespace OpenSim.Data.MySQL
1243 { 1248 {
1244 prim.KeyframeMotion = null; 1249 prim.KeyframeMotion = null;
1245 } 1250 }
1251
1252 prim.PhysicsShapeType = (byte)row["PhysicsShapeType"];
1253 prim.Density = (float)(double)row["Density"];
1254 prim.GravityModifier = (float)(double)row["GravityModifier"];
1255 prim.Friction = (float)(double)row["Friction"];
1256 prim.Bounciness = (float)(double)row["Restitution"];
1257
1246 return prim; 1258 return prim;
1247 } 1259 }
1248 1260
@@ -1600,6 +1612,12 @@ namespace OpenSim.Data.MySQL
1600 cmd.Parameters.AddWithValue("KeyframeMotion", prim.KeyframeMotion.Serialize()); 1612 cmd.Parameters.AddWithValue("KeyframeMotion", prim.KeyframeMotion.Serialize());
1601 else 1613 else
1602 cmd.Parameters.AddWithValue("KeyframeMotion", new Byte[0]); 1614 cmd.Parameters.AddWithValue("KeyframeMotion", new Byte[0]);
1615
1616 cmd.Parameters.AddWithValue("PhysicsShapeType", prim.PhysicsShapeType);
1617 cmd.Parameters.AddWithValue("Density", (double)prim.Density);
1618 cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier);
1619 cmd.Parameters.AddWithValue("Friction", (double)prim.Friction);
1620 cmd.Parameters.AddWithValue("Restitution", (double)prim.Bounciness);
1603 } 1621 }
1604 1622
1605 /// <summary> 1623 /// <summary>