* minor: remove useless exception catch
parent
0e180b0ad3
commit
13cf89bf3b
|
@ -897,15 +897,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
lock (m_parts)
|
lock (m_parts)
|
||||||
{
|
{
|
||||||
part.SetParent(this);
|
part.SetParent(this);
|
||||||
|
m_parts.Add(part.UUID, part);
|
||||||
try
|
|
||||||
{
|
|
||||||
m_parts.Add(part.UUID, part);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
m_log.Error("Failed to add scene object part", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
part.LinkNum = m_parts.Count;
|
part.LinkNum = m_parts.Count;
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test adding an object to a scene. Doesn't yet do what it says on the tin.
|
/// Test adding an object to a scene.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void TestAddSceneObject()
|
public void TestAddSceneObject()
|
||||||
|
|
Loading…
Reference in New Issue