diff options
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.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
1470 | 1470 | ||
1471 | List<string> bodyNames = new List<string>(); | 1471 | List<string> bodyNames = new List<string>(); |
1472 | string RawParams = Description; | 1472 | string RawParams = Description; |
1473 | string[] jointParams = RawParams.Split(' '); | 1473 | string[] jointParams = RawParams.Split(" ".ToCharArray(), System.StringSplitOptions.RemoveEmptyEntries); |
1474 | string trackedBodyName = null; | 1474 | string trackedBodyName = null; |
1475 | if (jointParams.Length >= 2) | 1475 | if (jointParams.Length >= 2) |
1476 | { | 1476 | { |