* ODEPlugin: put a limit on the minimum size a prim can be ( scale <=0 ).
parent
6e9c803f94
commit
2d33bf854f
|
@ -160,6 +160,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
prim_geom = (IntPtr)0;
|
prim_geom = (IntPtr)0;
|
||||||
prev_geom = (IntPtr)0;
|
prev_geom = (IntPtr)0;
|
||||||
|
|
||||||
|
if (size.X <= 0) size.X = 0.01f;
|
||||||
|
if (size.Y <= 0) size.Y = 0.01f;
|
||||||
|
if (size.Z <= 0) size.Z = 0.01f;
|
||||||
|
|
||||||
_size = size;
|
_size = size;
|
||||||
m_taintsize = _size;
|
m_taintsize = _size;
|
||||||
_acceleration = new PhysicsVector();
|
_acceleration = new PhysicsVector();
|
||||||
|
@ -1296,6 +1300,9 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
//}
|
//}
|
||||||
string oldname = _parent_scene.geom_name_map[prim_geom];
|
string oldname = _parent_scene.geom_name_map[prim_geom];
|
||||||
|
|
||||||
|
if (_size.X <= 0) _size.X = 0.01f;
|
||||||
|
if (_size.Y <= 0) _size.Y = 0.01f;
|
||||||
|
if (_size.Z <= 0) _size.Z = 0.01f;
|
||||||
|
|
||||||
// Cleanup of old prim geometry
|
// Cleanup of old prim geometry
|
||||||
if (_mesh != null)
|
if (_mesh != null)
|
||||||
|
@ -1485,7 +1492,9 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
d.GeomDestroy(prim_geom);
|
d.GeomDestroy(prim_geom);
|
||||||
prim_geom = (IntPtr) 0;
|
prim_geom = (IntPtr) 0;
|
||||||
// we don't need to do space calculation because the client sends a position update also.
|
// we don't need to do space calculation because the client sends a position update also.
|
||||||
|
if (_size.X <= 0) _size.X = 0.01f;
|
||||||
|
if (_size.Y <= 0) _size.Y = 0.01f;
|
||||||
|
if (_size.Z <= 0) _size.Z = 0.01f;
|
||||||
// Construction of new prim
|
// Construction of new prim
|
||||||
if (_parent_scene.needsMeshing(_pbs))
|
if (_parent_scene.needsMeshing(_pbs))
|
||||||
{
|
{
|
||||||
|
@ -1964,9 +1973,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
|
|
||||||
if (_zeroFlag)
|
if (_zeroFlag)
|
||||||
{
|
{
|
||||||
// Supposedly this is supposed to tell SceneObjectGroup that
|
|
||||||
// no more updates need to be sent..
|
|
||||||
// but it seems broken.
|
|
||||||
_velocity.X = 0.0f;
|
_velocity.X = 0.0f;
|
||||||
_velocity.Y = 0.0f;
|
_velocity.Y = 0.0f;
|
||||||
_velocity.Z = 0.0f;
|
_velocity.Z = 0.0f;
|
||||||
|
|
Loading…
Reference in New Issue