mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Prevent a nullref when building new prims while others watch
This commit is contained in:
@@ -1772,8 +1772,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
AdaptTree(ref shape);
|
||||
}
|
||||
|
||||
sceneObject.SetGroup(groupID, null);
|
||||
AddNewSceneObject(sceneObject, true);
|
||||
sceneObject.SetGroup(groupID, null);
|
||||
|
||||
return sceneObject;
|
||||
}
|
||||
|
||||
@@ -1699,6 +1699,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public void QueueForUpdateCheck()
|
||||
{
|
||||
if (m_scene == null) // Need to check here as it's null during object creation
|
||||
return;
|
||||
m_scene.m_sceneGraph.AddToUpdateList(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user