2nd stab at that prim loading nasty
parent
625c67de54
commit
44b2ecf29d
|
@ -249,7 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
/// </returns>
|
/// </returns>
|
||||||
protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
|
protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
|
||||||
{
|
{
|
||||||
if (sceneObject.RootPart == null)
|
if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
|
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
|
||||||
|
|
|
@ -35,7 +35,7 @@ using System.Reflection;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
//using log4net;
|
using log4net;
|
||||||
using Nini.Config;
|
using Nini.Config;
|
||||||
using Amib.Threading;
|
using Amib.Threading;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
|
@ -52,7 +52,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
{
|
{
|
||||||
public class ScriptInstance : IScriptInstance
|
public class ScriptInstance : IScriptInstance
|
||||||
{
|
{
|
||||||
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
private IScriptEngine m_Engine;
|
private IScriptEngine m_Engine;
|
||||||
private IScriptWorkItem m_CurrentResult = null;
|
private IScriptWorkItem m_CurrentResult = null;
|
||||||
|
@ -843,7 +843,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return message;
|
m_log.ErrorFormat("Scripting exception:");
|
||||||
|
m_log.ErrorFormat(e.ToString());
|
||||||
|
|
||||||
|
return e.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue