* phantom sculpties don't request the sculpt texture anymore.

0.6.0-stable
Teravus Ovares 2008-05-25 04:15:32 +00:00
parent c29409dc24
commit 29092d3999
2 changed files with 39 additions and 3 deletions

View File

@ -2521,6 +2521,10 @@ namespace OpenSim.Region.Environment.Scenes
public void CheckSculptAndLoad()
{
lock (m_parts)
{
if (RootPart != null)
{
if ((RootPart.GetEffectiveObjectFlags() & (uint)LLObject.ObjectFlags.Phantom) == 0)
{
foreach (SceneObjectPart part in m_parts.Values)
{
@ -2531,6 +2535,8 @@ namespace OpenSim.Region.Environment.Scenes
}
}
}
}
}
public void SetGroup(LLUUID GroupID, IClientAPI client)
{
lock (m_parts)

View File

@ -1786,6 +1786,16 @@ namespace OpenSim.Region.Environment.Scenes
if (!wasUsingPhysics)
{
DoPhysicsPropertyUpdate(usePhysics, false);
if (m_parentGroup != null)
{
if (m_parentGroup.RootPart != null)
{
if (LocalId == m_parentGroup.RootPart.LocalId)
{
m_parentGroup.CheckSculptAndLoad();
}
}
}
}
}
else
@ -1826,12 +1836,32 @@ namespace OpenSim.Region.Environment.Scenes
{
PhysActor.LocalID = LocalId;
DoPhysicsPropertyUpdate(usePhysics, true);
if (m_parentGroup != null)
{
if (m_parentGroup.RootPart != null)
{
if (LocalId == m_parentGroup.RootPart.LocalId)
{
m_parentGroup.CheckSculptAndLoad();
}
}
}
}
}
else
{
PhysActor.IsPhysical = usePhysics;
DoPhysicsPropertyUpdate(usePhysics, false);
if (m_parentGroup != null)
{
if (m_parentGroup.RootPart != null)
{
if (LocalId == m_parentGroup.RootPart.LocalId)
{
m_parentGroup.CheckSculptAndLoad();
}
}
}
}
}