mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
extend phantom flag regression test to toggle back off
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user