Fix Nebadon's WP crash (invalid root part from database null-ref)
parent
94558603e5
commit
625c67de54
|
@ -249,6 +249,9 @@ 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)
|
||||||
|
return false;
|
||||||
|
|
||||||
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
|
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
|
||||||
sceneObject.ScheduleGroupForFullUpdate();
|
sceneObject.ScheduleGroupForFullUpdate();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue