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>
|
||||
protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
|
||||
{
|
||||
if (sceneObject.RootPart == null)
|
||||
return false;
|
||||
|
||||
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
|
||||
sceneObject.ScheduleGroupForFullUpdate();
|
||||
|
||||
|
|
Loading…
Reference in New Issue