mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
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:
@@ -2318,7 +2318,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
foreach (PhysicsJoint joint in pendingJoints)
|
||||
{
|
||||
//DoJointErrorMessage(joint, "taint: time to create joint with parms: " + joint.RawParams);
|
||||
string[] jointParams = joint.RawParams.Split(' ');
|
||||
string[] jointParams = joint.RawParams.Split(" ".ToCharArray(), System.StringSplitOptions.RemoveEmptyEntries);
|
||||
List<IntPtr> jointBodies = new List<IntPtr>();
|
||||
bool allJointBodiesAreReady = true;
|
||||
foreach (string jointParam in jointParams)
|
||||
|
||||
Reference in New Issue
Block a user