diff options
author | UbitUmarov | 2014-09-19 16:51:51 +0100 |
---|---|---|
committer | UbitUmarov | 2014-09-19 16:51:51 +0100 |
commit | 9c552212a983c7e076c53340af9f47584d641aff (patch) | |
tree | fafb3845ea011b23f80944f5f8a29a57b93f3d79 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | fix positions on same frames transitions (diff) | |
download | opensim-SC_OLD-9c552212a983c7e076c53340af9f47584d641aff.zip opensim-SC_OLD-9c552212a983c7e076c53340af9f47584d641aff.tar.gz opensim-SC_OLD-9c552212a983c7e076c53340af9f47584d641aff.tar.bz2 opensim-SC_OLD-9c552212a983c7e076c53340af9f47584d641aff.tar.xz |
exclude npcs from baked cache
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 9d06c26..9c55d4a 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1703,6 +1703,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1703 | m_log.DebugFormat("[CompleteMovement] WaitForUpdateAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1703 | m_log.DebugFormat("[CompleteMovement] WaitForUpdateAgent: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1704 | 1704 | ||
1705 | bool flying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); | 1705 | bool flying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); |
1706 | |||
1706 | if (!MakeRootAgent(AbsolutePosition, flying)) | 1707 | if (!MakeRootAgent(AbsolutePosition, flying)) |
1707 | { | 1708 | { |
1708 | m_log.DebugFormat( | 1709 | m_log.DebugFormat( |
@@ -1724,7 +1725,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1724 | look = new Vector3(0.99f, 0.042f, 0); | 1725 | look = new Vector3(0.99f, 0.042f, 0); |
1725 | } | 1726 | } |
1726 | 1727 | ||
1727 | if (!IsChildAgent) | 1728 | if (!IsChildAgent && !isNPC) |
1728 | { | 1729 | { |
1729 | InventoryFolderBase cof = m_scene.InventoryService.GetFolderForType(client.AgentId, (AssetType)46); | 1730 | InventoryFolderBase cof = m_scene.InventoryService.GetFolderForType(client.AgentId, (AssetType)46); |
1730 | if (cof == null) | 1731 | if (cof == null) |
@@ -1790,16 +1791,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
1790 | 1791 | ||
1791 | // verify baked textures and cache | 1792 | // verify baked textures and cache |
1792 | 1793 | ||
1794 | |||
1793 | bool cachedbaked = false; | 1795 | bool cachedbaked = false; |
1794 | 1796 | ||
1795 | if (m_scene.AvatarFactory != null) | 1797 | if (isNPC) |
1796 | cachedbaked = m_scene.AvatarFactory.ValidateBakedTextureCache(this); | 1798 | cachedbaked = true; |
1797 | 1799 | else | |
1798 | // not sure we need this | ||
1799 | if (!cachedbaked) | ||
1800 | { | 1800 | { |
1801 | if (m_scene.AvatarFactory != null) | 1801 | if (m_scene.AvatarFactory != null) |
1802 | m_scene.AvatarFactory.QueueAppearanceSave(UUID); | 1802 | cachedbaked = m_scene.AvatarFactory.ValidateBakedTextureCache(this); |
1803 | |||
1804 | // not sure we need this | ||
1805 | if (!cachedbaked) | ||
1806 | { | ||
1807 | if (m_scene.AvatarFactory != null) | ||
1808 | m_scene.AvatarFactory.QueueAppearanceSave(UUID); | ||
1809 | } | ||
1803 | } | 1810 | } |
1804 | 1811 | ||
1805 | List<ScenePresence> allpresences = m_scene.GetScenePresences(); | 1812 | List<ScenePresence> allpresences = m_scene.GetScenePresences(); |