Add sop IsPhysical and IsPhantom to be used gradually in core in place of asking physics engines all the time. Some engines delays may make them give wrong answers.

avinationmerge
UbitUmarov 2012-06-15 12:19:42 +01:00
parent c8227e1bb7
commit 065cda3711
1 changed files with 21 additions and 3 deletions

View File

@ -611,7 +611,10 @@ namespace OpenSim.Region.Framework.Scenes
public bool IsSelected public bool IsSelected
{ {
get { return m_isSelected; } get
{
return m_isSelected;
}
set set
{ {
m_isSelected = value; m_isSelected = value;
@ -620,6 +623,21 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
public bool IsPhysical
{
get
{
return ((Flags & PrimFlags.Physics) != 0);
}
}
public bool IsPhantom
{
get
{
return ((Flags & PrimFlags.Phantom) != 0);
}
}
public Dictionary<int, string> CollisionFilter public Dictionary<int, string> CollisionFilter
{ {