From bfdf2479fb3a0fe401df743b162db65ef5384083 Mon Sep 17 00:00:00 2001 From: nlin Date: Wed, 14 Jan 2009 04:59:57 +0000 Subject: Improve parsing of joint parameters for NINJA physics (Mantis #2966). Multiple spaces or leading/trailing spaces when specifying the prims to connect should no longer cause problems. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index b22830c..1fffd7f 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1470,7 +1470,7 @@ if (m_shape != null) { List bodyNames = new List(); string RawParams = Description; - string[] jointParams = RawParams.Split(' '); + string[] jointParams = RawParams.Split(" ".ToCharArray(), System.StringSplitOptions.RemoveEmptyEntries); string trackedBodyName = null; if (jointParams.Length >= 2) { -- cgit v1.1