diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs index 1737e3c..8d88083 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectStatusTests.cs | |||
@@ -71,7 +71,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
71 | m_so1.ScriptSetTemporaryStatus(false); | 71 | m_so1.ScriptSetTemporaryStatus(false); |
72 | 72 | ||
73 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.None)); | 73 | Assert.That(m_so1.RootPart.Flags, Is.EqualTo(PrimFlags.None)); |
74 | Assert.That(m_so1.Backup, Is.True); | 74 | Assert.That(m_so1.Backup, Is.True); |
75 | } | 75 | } |
76 | 76 | ||
77 | [Test] | 77 | [Test] |
@@ -91,7 +91,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
91 | 91 | ||
92 | m_so1.ScriptSetPhantomStatus(false); | 92 | m_so1.ScriptSetPhantomStatus(false); |
93 | 93 | ||
94 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); | 94 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); |
95 | } | 95 | } |
96 | 96 | ||
97 | [Test] | 97 | [Test] |
@@ -107,11 +107,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
107 | m_so1.ScriptSetVolumeDetect(true); | 107 | m_so1.ScriptSetVolumeDetect(true); |
108 | 108 | ||
109 | // Console.WriteLine("so.RootPart.Flags [{0}]", so.RootPart.Flags); | 109 | // Console.WriteLine("so.RootPart.Flags [{0}]", so.RootPart.Flags); |
110 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Phantom)); | 110 | // PrimFlags.JointLP2P is incorrect it now means VolumeDetect (as defined by viewers) |
111 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Phantom | PrimFlags.JointLP2P)); | ||
111 | 112 | ||
112 | m_so1.ScriptSetVolumeDetect(false); | 113 | m_so1.ScriptSetVolumeDetect(false); |
113 | 114 | ||
114 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); | 115 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None)); |
115 | } | 116 | } |
116 | 117 | ||
117 | [Test] | 118 | [Test] |
@@ -146,13 +147,14 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
146 | m_so1.ScriptSetPhysicsStatus(true); | 147 | m_so1.ScriptSetPhysicsStatus(true); |
147 | m_so1.ScriptSetVolumeDetect(true); | 148 | m_so1.ScriptSetVolumeDetect(true); |
148 | 149 | ||
149 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Phantom | PrimFlags.Physics)); | 150 | // PrimFlags.JointLP2P is incorrect it now means VolumeDetect (as defined by viewers) |
151 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Phantom | PrimFlags.Physics | PrimFlags.JointLP2P)); | ||
150 | 152 | ||
151 | m_so1.ScriptSetVolumeDetect(false); | 153 | m_so1.ScriptSetVolumeDetect(false); |
152 | 154 | ||
153 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Physics)); | 155 | Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Physics)); |
154 | } | 156 | } |
155 | 157 | ||
156 | [Test] | 158 | [Test] |
157 | public void TestSetPhysicsLinkset() | 159 | public void TestSetPhysicsLinkset() |
158 | { | 160 | { |