aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-05-29 21:01:18 +0000
committerJustin Clarke Casey2009-05-29 21:01:18 +0000
commit4aad6a07ffbf1190836940b14476f24b7e8cecb1 (patch)
tree89638270808fd1c26a4c916f3575327459cf4c29 /OpenSim/Region/Framework/Scenes
parent* Add save xml2 serialization test (diff)
downloadopensim-SC_OLD-4aad6a07ffbf1190836940b14476f24b7e8cecb1.zip
opensim-SC_OLD-4aad6a07ffbf1190836940b14476f24b7e8cecb1.tar.gz
opensim-SC_OLD-4aad6a07ffbf1190836940b14476f24b7e8cecb1.tar.bz2
opensim-SC_OLD-4aad6a07ffbf1190836940b14476f24b7e8cecb1.tar.xz
* refactor: Remove redundent prim id attribute on Scene.AddSceneObject()
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 28d5bad..842bf1e 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1663,14 +1663,12 @@ namespace OpenSim.Region.Framework.Scenes
1663 /// <returns></returns> 1663 /// <returns></returns>
1664 public bool IncomingInterRegionPrimGroup(UUID primID, string objXMLData, int XMLMethod) 1664 public bool IncomingInterRegionPrimGroup(UUID primID, string objXMLData, int XMLMethod)
1665 { 1665 {
1666
1667 if (XMLMethod == 0) 1666 if (XMLMethod == 0)
1668 { 1667 {
1669 m_log.DebugFormat("[INTERREGION]: A new prim {0} arrived from a neighbor", primID); 1668 m_log.DebugFormat("[INTERREGION]: A new prim {0} arrived from a neighbor", primID);
1670 SceneObjectGroup sceneObject = m_serialiser.DeserializeGroupFromXml2(objXMLData); 1669 SceneObjectGroup sceneObject = m_serialiser.DeserializeGroupFromXml2(objXMLData);
1671 1670
1672 return AddSceneObject(primID, sceneObject); 1671 return AddSceneObject(sceneObject);
1673
1674 } 1672 }
1675 else if ((XMLMethod == 100) && m_allowScriptCrossings) 1673 else if ((XMLMethod == 100) && m_allowScriptCrossings)
1676 { 1674 {
@@ -1763,7 +1761,7 @@ namespace OpenSim.Region.Framework.Scenes
1763 return false; 1761 return false;
1764 } 1762 }
1765 1763
1766 if (!AddSceneObject(newObject.UUID, newObject)) 1764 if (!AddSceneObject(newObject))
1767 { 1765 {
1768 m_log.DebugFormat("[SCENE]: Problem adding scene object {0} in {1} ", sog.UUID, RegionInfo.RegionName); 1766 m_log.DebugFormat("[SCENE]: Problem adding scene object {0} in {1} ", sog.UUID, RegionInfo.RegionName);
1769 return false; 1767 return false;
@@ -1784,7 +1782,7 @@ namespace OpenSim.Region.Framework.Scenes
1784 return false; 1782 return false;
1785 } 1783 }
1786 1784
1787 public bool AddSceneObject(UUID primID, SceneObjectGroup sceneObject) 1785 public bool AddSceneObject(SceneObjectGroup sceneObject)
1788 { 1786 {
1789 // If the user is banned, we won't let any of their objects 1787 // If the user is banned, we won't let any of their objects
1790 // enter. Period. 1788 // enter. Period.
@@ -1810,12 +1808,9 @@ namespace OpenSim.Region.Framework.Scenes
1810 AddRestoredSceneObject(sceneObject, false, false); 1808 AddRestoredSceneObject(sceneObject, false, false);
1811 1809
1812 // Handle attachment special case 1810 // Handle attachment special case
1813 //
1814 //SceneObjectPart RootPrim = GetSceneObjectPart(primID);
1815 SceneObjectPart RootPrim = sceneObject.RootPart; 1811 SceneObjectPart RootPrim = sceneObject.RootPart;
1816 1812
1817 // Fix up attachment Parent Local ID 1813 // Fix up attachment Parent Local ID
1818 //
1819 ScenePresence sp = GetScenePresence(sceneObject.OwnerID); 1814 ScenePresence sp = GetScenePresence(sceneObject.OwnerID);
1820 1815
1821 //uint parentLocalID = 0; 1816 //uint parentLocalID = 0;