ubitode prim select was not doing phantom case

avinationmerge
UbitUmarov 2012-03-12 07:46:20 +00:00
parent 6c4c500ee4
commit b5e172677d
1 changed files with 17 additions and 6 deletions

View File

@ -2487,6 +2487,16 @@ namespace OpenSim.Region.Physics.OdePlugin
if (!childPrim && Body != IntPtr.Zero && !m_disabled)
d.BodyEnable(Body);
if (m_isphantom && !m_isVolumeDetect)
{
m_collisionCategories = 0;
if(m_isphysical)
m_collisionFlags = CollisionCategories.Land;
else
m_collisionFlags = 0;
}
else
{
m_collisionCategories = CollisionCategories.Geom;
if (m_isphysical)
m_collisionCategories |= CollisionCategories.Body;
@ -2495,6 +2505,7 @@ namespace OpenSim.Region.Physics.OdePlugin
if (m_collidesWater)
m_collisionFlags |= CollisionCategories.Water;
}
if (!childPrim)
{