From 29092d39990d6641a1009c23b18b9374e0b31316 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 25 May 2008 04:15:32 +0000 Subject: * phantom sculpties don't request the sculpt texture anymore. --- .../Region/Environment/Scenes/SceneObjectPart.cs | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index d95143e..b724bda 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -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(); + } + } + } } } -- cgit v1.1