mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Fix Nebadon's WP crash (invalid root part from database null-ref)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user