mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
2nd stab at that prim loading nasty
This commit is contained in:
@@ -249,7 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// </returns>
|
||||
protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
|
||||
{
|
||||
if (sceneObject.RootPart == null)
|
||||
if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == null)
|
||||
return false;
|
||||
|
||||
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
|
||||
|
||||
Reference in New Issue
Block a user