diff options
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index 97a433f..5740b91 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -1452,13 +1452,10 @@ namespace OpenSim.Data.MySQL | |||
1452 | prim.VehicleParams = vehicle; | 1452 | prim.VehicleParams = vehicle; |
1453 | } | 1453 | } |
1454 | 1454 | ||
1455 | PhysicsInertiaData pdata; | 1455 | PhysicsInertiaData pdata = null; |
1456 | if (row["PhysInertia"].ToString() != String.Empty) | 1456 | if (row["PhysInertia"].ToString() != String.Empty) |
1457 | { | ||
1458 | pdata = PhysicsInertiaData.FromXml2(row["PhysInertia"].ToString()); | 1457 | pdata = PhysicsInertiaData.FromXml2(row["PhysInertia"].ToString()); |
1459 | if (pdata != null) | 1458 | prim.PhysicsInertia = pdata; |
1460 | prim.PhysicsInertia = pdata; | ||
1461 | } | ||
1462 | 1459 | ||
1463 | return prim; | 1460 | return prim; |
1464 | } | 1461 | } |