Apply the localID to the Physics actor to prevent null calls later
parent
51c47677a1
commit
9fc7d65df7
|
@ -1677,7 +1677,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
|
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 pos = position;
|
||||||
Vector3 siz = size;
|
Vector3 siz = size;
|
||||||
|
@ -1691,7 +1691,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
lock (_prims)
|
lock (_prims)
|
||||||
_prims.Add(newPrim);
|
_prims.Add(newPrim);
|
||||||
}
|
}
|
||||||
|
newPrim.LocalID = localID;
|
||||||
return newPrim;
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue