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
{
get { return m_isSelected; }
get
{
return m_isSelected;
}
set
{
m_isSelected = value;
@ -619,8 +622,23 @@ namespace OpenSim.Region.Framework.Scenes
ParentGroup.PartSelectChanged(value);
}
}
public bool IsPhysical
{
get
{
return ((Flags & PrimFlags.Physics) != 0);
}
}
public bool IsPhantom
{
get
{
return ((Flags & PrimFlags.Phantom) != 0);
}
}
public Dictionary<int, string> CollisionFilter
{
get { return m_CollisionFilter; }