mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
refactor: Fold most SOP.ScriptSet* methods back into script code. Simplify.
This commit is contained in:
@@ -2967,22 +2967,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void ScriptSetPhantomStatus(bool Phantom)
|
||||
{
|
||||
if (m_parentGroup != null)
|
||||
{
|
||||
m_parentGroup.ScriptSetPhantomStatus(Phantom);
|
||||
}
|
||||
}
|
||||
|
||||
public void ScriptSetTemporaryStatus(bool Temporary)
|
||||
{
|
||||
if (m_parentGroup != null)
|
||||
{
|
||||
m_parentGroup.ScriptSetTemporaryStatus(Temporary);
|
||||
}
|
||||
}
|
||||
|
||||
public void ScriptSetPhysicsStatus(bool UsePhysics)
|
||||
{
|
||||
if (m_parentGroup == null)
|
||||
@@ -2991,15 +2975,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_parentGroup.ScriptSetPhysicsStatus(UsePhysics);
|
||||
}
|
||||
|
||||
public void ScriptSetVolumeDetect(bool SetVD)
|
||||
{
|
||||
|
||||
if (m_parentGroup != null)
|
||||
{
|
||||
m_parentGroup.ScriptSetVolumeDetect(SetVD);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set sculpt and mesh data, and tell the physics engine to process the change.
|
||||
/// </summary>
|
||||
|
||||
@@ -53,9 +53,9 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
SceneObjectPart rootPart = so.RootPart;
|
||||
Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None));
|
||||
|
||||
so.RootPart.ScriptSetPhantomStatus(true);
|
||||
so.ScriptSetPhantomStatus(true);
|
||||
|
||||
Console.WriteLine("so.RootPart.Flags [{0}]", so.RootPart.Flags);
|
||||
// Console.WriteLine("so.RootPart.Flags [{0}]", so.RootPart.Flags);
|
||||
Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.Phantom));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user