Fix Nebadon's WP crash (invalid root part from database null-ref)

0.6.0-stable
Melanie Thielker 2008-10-11 16:23:15 +00:00
parent 94558603e5
commit 625c67de54
1 changed files with 3 additions and 0 deletions

View File

@ -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();