Giving Mantis 393 a shot (not enough info to really know for sure though).
parent
50dcd33bab
commit
af43349294
|
@ -137,6 +137,8 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1)
|
if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1)
|
||||||
{
|
{
|
||||||
if (_size.X == _size.Y && _size.Y == _size.Z && _size.X == _size.Z)
|
if (_size.X == _size.Y && _size.Y == _size.Z && _size.X == _size.Z)
|
||||||
|
{
|
||||||
|
if (((_size.X / 2f) > 0f) && ((_size.X / 2f) < 1000))
|
||||||
{
|
{
|
||||||
prim_geom = d.CreateSphere(m_targetSpace, _size.X / 2);
|
prim_geom = d.CreateSphere(m_targetSpace, _size.X / 2);
|
||||||
}
|
}
|
||||||
|
@ -145,6 +147,11 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
prim_geom = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
|
prim_geom = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
prim_geom = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
|
||||||
|
}
|
||||||
|
}
|
||||||
//else if (pbs.ProfileShape == ProfileShape.Circle && pbs.PathCurve == (byte)Extrusion.Straight)
|
//else if (pbs.ProfileShape == ProfileShape.Circle && pbs.PathCurve == (byte)Extrusion.Straight)
|
||||||
//{
|
//{
|
||||||
//Cyllinder
|
//Cyllinder
|
||||||
|
@ -489,10 +496,19 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (_pbs.ProfileShape == ProfileShape.HalfCircle && _pbs.PathCurve == (byte)Extrusion.Curve1)
|
if (_pbs.ProfileShape == ProfileShape.HalfCircle && _pbs.PathCurve == (byte)Extrusion.Curve1)
|
||||||
{
|
{
|
||||||
if (_size.X == _size.Y && _size.Y == _size.Z && _size.X == _size.Z)
|
if (_size.X == _size.Y && _size.Y == _size.Z && _size.X == _size.Z)
|
||||||
|
{
|
||||||
|
if (((_size.X / 2f) > 0f) && ((_size.X / 2f) < 1000))
|
||||||
{
|
{
|
||||||
prim_geom = d.CreateSphere(m_targetSpace, _size.X / 2);
|
prim_geom = d.CreateSphere(m_targetSpace, _size.X / 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
OpenSim.Framework.Console.MainLog.Instance.Verbose("PHYSICS", "Failed to load a sphere bad size");
|
||||||
|
prim_geom = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
prim_geom = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
|
prim_geom = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue