diff options
author | Teravus Ovares | 2008-05-25 04:15:32 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-25 04:15:32 +0000 |
commit | 29092d39990d6641a1009c23b18b9374e0b31316 (patch) | |
tree | f11f12f28ea82e68109aceb01fafc4cc188657e6 /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | * Yet another way to optimize the sculpt mesh generator (diff) | |
download | opensim-SC_OLD-29092d39990d6641a1009c23b18b9374e0b31316.zip opensim-SC_OLD-29092d39990d6641a1009c23b18b9374e0b31316.tar.gz opensim-SC_OLD-29092d39990d6641a1009c23b18b9374e0b31316.tar.bz2 opensim-SC_OLD-29092d39990d6641a1009c23b18b9374e0b31316.tar.xz |
* phantom sculpties don't request the sculpt texture anymore.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 30 |
1 files changed, 30 insertions, 0 deletions
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 | |||
1786 | if (!wasUsingPhysics) | 1786 | if (!wasUsingPhysics) |
1787 | { | 1787 | { |
1788 | DoPhysicsPropertyUpdate(usePhysics, false); | 1788 | DoPhysicsPropertyUpdate(usePhysics, false); |
1789 | if (m_parentGroup != null) | ||
1790 | { | ||
1791 | if (m_parentGroup.RootPart != null) | ||
1792 | { | ||
1793 | if (LocalId == m_parentGroup.RootPart.LocalId) | ||
1794 | { | ||
1795 | m_parentGroup.CheckSculptAndLoad(); | ||
1796 | } | ||
1797 | } | ||
1798 | } | ||
1789 | } | 1799 | } |
1790 | } | 1800 | } |
1791 | else | 1801 | else |
@@ -1826,12 +1836,32 @@ namespace OpenSim.Region.Environment.Scenes | |||
1826 | { | 1836 | { |
1827 | PhysActor.LocalID = LocalId; | 1837 | PhysActor.LocalID = LocalId; |
1828 | DoPhysicsPropertyUpdate(usePhysics, true); | 1838 | DoPhysicsPropertyUpdate(usePhysics, true); |
1839 | if (m_parentGroup != null) | ||
1840 | { | ||
1841 | if (m_parentGroup.RootPart != null) | ||
1842 | { | ||
1843 | if (LocalId == m_parentGroup.RootPart.LocalId) | ||
1844 | { | ||
1845 | m_parentGroup.CheckSculptAndLoad(); | ||
1846 | } | ||
1847 | } | ||
1848 | } | ||
1829 | } | 1849 | } |
1830 | } | 1850 | } |
1831 | else | 1851 | else |
1832 | { | 1852 | { |
1833 | PhysActor.IsPhysical = usePhysics; | 1853 | PhysActor.IsPhysical = usePhysics; |
1834 | DoPhysicsPropertyUpdate(usePhysics, false); | 1854 | DoPhysicsPropertyUpdate(usePhysics, false); |
1855 | if (m_parentGroup != null) | ||
1856 | { | ||
1857 | if (m_parentGroup.RootPart != null) | ||
1858 | { | ||
1859 | if (LocalId == m_parentGroup.RootPart.LocalId) | ||
1860 | { | ||
1861 | m_parentGroup.CheckSculptAndLoad(); | ||
1862 | } | ||
1863 | } | ||
1864 | } | ||
1835 | } | 1865 | } |
1836 | } | 1866 | } |
1837 | 1867 | ||