From cc72ea532a5ad6d075a7ed2b017428fbecbb54b5 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 12 Oct 2008 16:40:18 +0000 Subject: Fix linking phantom and nonphantom prims. Make the error message more friendly when estate_settings.xml is empty or missing --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 27601d2..bf6025e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -553,7 +553,7 @@ namespace OpenSim.Region.Environment.Scenes if (ParentGroup != null && ParentGroup.RootPart != null) { - if (_parentID != 0) + if (_parentID != 0 && PhysActor != null) { Vector3 resultingposition = GetWorldPosition(); PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z); -- cgit v1.1