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.
This commit is contained in:
nlin
2009-01-14 04:59:57 +00:00
parent 866c85be0d
commit bfdf2479fb
2 changed files with 2 additions and 2 deletions

View File

@@ -1470,7 +1470,7 @@ if (m_shape != null) {
List<string> bodyNames = new List<string>();
string RawParams = Description;
string[] jointParams = RawParams.Split(' ');
string[] jointParams = RawParams.Split(" ".ToCharArray(), System.StringSplitOptions.RemoveEmptyEntries);
string trackedBodyName = null;
if (jointParams.Length >= 2)
{