extend phantom flag regression test to toggle back off
parent
c6c91e6599
commit
cba40de109
|
@ -4514,6 +4514,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
RemFlag(PrimFlags.Phantom);
|
||||
|
||||
if (ParentGroup.Scene == null)
|
||||
return;
|
||||
|
||||
PhysicsActor pa = PhysActor;
|
||||
|
||||
if (pa == null)
|
||||
|
|
|
@ -57,6 +57,10 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
|||
|
||||
// Console.WriteLine("so.RootPart.Flags [{0}]", so.RootPart.Flags);
|
||||
Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Phantom));
|
||||
|
||||
so.ScriptSetPhantomStatus(false);
|
||||
|
||||
Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue