diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index c055160..cf743de 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -2015,7 +2015,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2015 | { | 2015 | { |
2016 | if (grp == null) | 2016 | if (grp == null) |
2017 | return; | 2017 | return; |
2018 | if (grp.RootPart == null) | 2018 | if (grp.IsDeleted) |
2019 | return; | 2019 | return; |
2020 | 2020 | ||
2021 | if (grp.RootPart.DIE_AT_EDGE) | 2021 | if (grp.RootPart.DIE_AT_EDGE) |
@@ -2116,7 +2116,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2116 | } | 2116 | } |
2117 | else | 2117 | else |
2118 | { | 2118 | { |
2119 | if (grp.RootPart != null) | 2119 | if (!grp.IsDeleted) |
2120 | { | 2120 | { |
2121 | if (grp.RootPart.PhysActor != null) | 2121 | if (grp.RootPart.PhysActor != null) |
2122 | { | 2122 | { |
@@ -2688,7 +2688,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2688 | SceneObjectPart part = GetSceneObjectPart(localID); | 2688 | SceneObjectPart part = GetSceneObjectPart(localID); |
2689 | if (part != null) // It is a prim | 2689 | if (part != null) // It is a prim |
2690 | { | 2690 | { |
2691 | if (part.ParentGroup != null && part.ParentGroup.RootPart != null) // Valid | 2691 | if (part.ParentGroup != null && !part.ParentGroup.IsDeleted) // Valid |
2692 | { | 2692 | { |
2693 | if (part.ParentGroup.RootPart != part) // Child part | 2693 | if (part.ParentGroup.RootPart != part) // Child part |
2694 | return; | 2694 | return; |
@@ -4200,7 +4200,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
4200 | if (part == null || part.ParentGroup == null) | 4200 | if (part == null || part.ParentGroup == null) |
4201 | return; | 4201 | return; |
4202 | 4202 | ||
4203 | if (part.ParentGroup.RootPart == null) | 4203 | if (part.ParentGroup.IsDeleted) |
4204 | return; | 4204 | return; |
4205 | 4205 | ||
4206 | part = part.ParentGroup.RootPart; | 4206 | part = part.ParentGroup.RootPart; |
@@ -4366,7 +4366,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
4366 | { | 4366 | { |
4367 | SceneObjectGroup grp = (SceneObjectGroup)obj; | 4367 | SceneObjectGroup grp = (SceneObjectGroup)obj; |
4368 | 4368 | ||
4369 | if (grp.RootPart != null) | 4369 | if (!grp.IsDeleted) |
4370 | { | 4370 | { |
4371 | if ((grp.RootPart.Flags & PrimFlags.TemporaryOnRez) != 0) | 4371 | if ((grp.RootPart.Flags & PrimFlags.TemporaryOnRez) != 0) |
4372 | { | 4372 | { |