Fix deserialization of Buoyancy, Force and Torque. Remove debug from the new

code.
This commit is contained in:
Melanie
2012-02-26 14:30:24 +01:00
parent 9a15bba99b
commit 8cdc115c91
5 changed files with 9 additions and 11 deletions

View File

@@ -1313,7 +1313,7 @@ namespace OpenSim.Region.Framework.Scenes
}
set
{
if (ParentGroup.RootPart != this)
if (ParentGroup != null && ParentGroup.RootPart != null && ParentGroup.RootPart != this)
{
ParentGroup.RootPart.Buoyancy = value;
return;
@@ -1336,7 +1336,7 @@ namespace OpenSim.Region.Framework.Scenes
set
{
if (ParentGroup.RootPart != this)
if (ParentGroup != null && ParentGroup.RootPart != null && ParentGroup.RootPart != this)
{
ParentGroup.RootPart.Force = value;
return;
@@ -1359,7 +1359,7 @@ namespace OpenSim.Region.Framework.Scenes
set
{
if (ParentGroup.RootPart != this)
if (ParentGroup != null && ParentGroup.RootPart != null && ParentGroup.RootPart != this)
{
ParentGroup.RootPart.Torque = value;
return;