Apply the localID to the Physics actor to prevent null calls later

bulletsim
Careminster Team 2011-07-19 10:25:49 -07:00 committed by root
parent 51c47677a1
commit 9fc7d65df7
1 changed files with 3 additions and 3 deletions

View File

@ -1677,7 +1677,7 @@ namespace OpenSim.Region.Physics.OdePlugin
}
private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
IMesh mesh, PrimitiveBaseShape pbs, bool isphysical)
IMesh mesh, PrimitiveBaseShape pbs, bool isphysical, uint localID)
{
Vector3 pos = position;
Vector3 siz = size;
@ -1691,7 +1691,7 @@ namespace OpenSim.Region.Physics.OdePlugin
lock (_prims)
_prims.Add(newPrim);
}
newPrim.LocalID = localID;
return newPrim;
}
@ -1733,7 +1733,7 @@ namespace OpenSim.Region.Physics.OdePlugin
// }
// }
result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical);
result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, localid);
return result;
}