diff options
author | Melanie | 2012-04-22 15:06:06 +0100 |
---|---|---|
committer | Melanie | 2012-04-22 15:06:06 +0100 |
commit | 8df4bd14f59ec6235cd7a02d74e69e530256b610 (patch) | |
tree | ee80b18ea802be18aaf24a7045afdd2e444b107a /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Comment out spurious Body != IntPtr.Zero code after disableBody(), since disa... (diff) | |
download | opensim-SC-8df4bd14f59ec6235cd7a02d74e69e530256b610.zip opensim-SC-8df4bd14f59ec6235cd7a02d74e69e530256b610.tar.gz opensim-SC-8df4bd14f59ec6235cd7a02d74e69e530256b610.tar.bz2 opensim-SC-8df4bd14f59ec6235cd7a02d74e69e530256b610.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index c73fc98..cd22def 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2074,6 +2074,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2074 | /// <param name="isNew"></param> | 2074 | /// <param name="isNew"></param> |
2075 | public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew) | 2075 | public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew) |
2076 | { | 2076 | { |
2077 | if (ParentGroup.Scene == null) | ||
2078 | return; | ||
2079 | |||
2077 | if (!ParentGroup.Scene.PhysicalPrims && UsePhysics) | 2080 | if (!ParentGroup.Scene.PhysicalPrims && UsePhysics) |
2078 | return; | 2081 | return; |
2079 | 2082 | ||
@@ -4531,7 +4534,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4531 | // For now, we use the NINJA naming scheme for identifying joints. | 4534 | // For now, we use the NINJA naming scheme for identifying joints. |
4532 | // In the future, we can support other joint specification schemes such as a | 4535 | // In the future, we can support other joint specification schemes such as a |
4533 | // custom checkbox in the viewer GUI. | 4536 | // custom checkbox in the viewer GUI. |
4534 | if (ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints) | 4537 | if (ParentGroup.Scene != null && ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints) |
4535 | { | 4538 | { |
4536 | string hingeString = "hingejoint"; | 4539 | string hingeString = "hingejoint"; |
4537 | return (Name.Length >= hingeString.Length && Name.Substring(0, hingeString.Length) == hingeString); | 4540 | return (Name.Length >= hingeString.Length && Name.Substring(0, hingeString.Length) == hingeString); |
@@ -4547,7 +4550,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4547 | // For now, we use the NINJA naming scheme for identifying joints. | 4550 | // For now, we use the NINJA naming scheme for identifying joints. |
4548 | // In the future, we can support other joint specification schemes such as a | 4551 | // In the future, we can support other joint specification schemes such as a |
4549 | // custom checkbox in the viewer GUI. | 4552 | // custom checkbox in the viewer GUI. |
4550 | if (ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints) | 4553 | if (ParentGroup.Scene != null && ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints) |
4551 | { | 4554 | { |
4552 | string ballString = "balljoint"; | 4555 | string ballString = "balljoint"; |
4553 | return (Name.Length >= ballString.Length && Name.Substring(0, ballString.Length) == ballString); | 4556 | return (Name.Length >= ballString.Length && Name.Substring(0, ballString.Length) == ballString); |
@@ -4563,7 +4566,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4563 | // For now, we use the NINJA naming scheme for identifying joints. | 4566 | // For now, we use the NINJA naming scheme for identifying joints. |
4564 | // In the future, we can support other joint specification schemes such as a | 4567 | // In the future, we can support other joint specification schemes such as a |
4565 | // custom checkbox in the viewer GUI. | 4568 | // custom checkbox in the viewer GUI. |
4566 | if (ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints) | 4569 | if (ParentGroup.Scene != null && ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints) |
4567 | { | 4570 | { |
4568 | return IsHingeJoint() || IsBallJoint(); | 4571 | return IsHingeJoint() || IsBallJoint(); |
4569 | } | 4572 | } |