diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs index 91f4a34..8cdd645 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | |||
@@ -131,5 +131,24 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
131 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.Physics)); | 131 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.Physics)); |
132 | Assert.That(m_so1.Parts[1].Flags, Is.EqualTo(PrimFlags.Physics)); | 132 | Assert.That(m_so1.Parts[1].Flags, Is.EqualTo(PrimFlags.Physics)); |
133 | } | 133 | } |
134 | |||
135 | /// <summary> | ||
136 | /// Test that linking results in the correct physical status for all linkees. | ||
137 | /// </summary> | ||
138 | [Test] | ||
139 | public void TestLinkPhysicsChildPhysicalOnly() | ||
140 | { | ||
141 | TestHelpers.InMethod(); | ||
142 | |||
143 | m_scene.AddSceneObject(m_so1); | ||
144 | m_scene.AddSceneObject(m_so2); | ||
145 | |||
146 | m_so2.ScriptSetPhysicsStatus(true); | ||
147 | |||
148 | m_scene.LinkObjects(m_ownerId, m_so1.LocalId, new List<uint>() { m_so2.LocalId }); | ||
149 | |||
150 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.None)); | ||
151 | Assert.That(m_so1.Parts[1].Flags, Is.EqualTo(PrimFlags.None)); | ||
152 | } | ||
134 | } | 153 | } |
135 | } \ No newline at end of file | 154 | } \ No newline at end of file |