aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-06-15 12:19:42 +0100
committerUbitUmarov2012-06-15 12:19:42 +0100
commit065cda37112fecc00e3c10fe966edde2ddc46b4e (patch)
tree84f5aac93424c80f84c693ca091e9611c9808dc4 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parent only rotation of root part change parts positions, so only call ResetChildPr... (diff)
downloadopensim-SC-065cda37112fecc00e3c10fe966edde2ddc46b4e.zip
opensim-SC-065cda37112fecc00e3c10fe966edde2ddc46b4e.tar.gz
opensim-SC-065cda37112fecc00e3c10fe966edde2ddc46b4e.tar.bz2
opensim-SC-065cda37112fecc00e3c10fe966edde2ddc46b4e.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs24
1 files changed, 21 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 8e74dc8..b51ce38 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -611,7 +611,10 @@ namespace OpenSim.Region.Framework.Scenes
611 611
612 public bool IsSelected 612 public bool IsSelected
613 { 613 {
614 get { return m_isSelected; } 614 get
615 {
616 return m_isSelected;
617 }
615 set 618 set
616 { 619 {
617 m_isSelected = value; 620 m_isSelected = value;
@@ -619,8 +622,23 @@ namespace OpenSim.Region.Framework.Scenes
619 ParentGroup.PartSelectChanged(value); 622 ParentGroup.PartSelectChanged(value);
620 } 623 }
621 } 624 }
622 625
623 626 public bool IsPhysical
627 {
628 get
629 {
630 return ((Flags & PrimFlags.Physics) != 0);
631 }
632 }
633
634 public bool IsPhantom
635 {
636 get
637 {
638 return ((Flags & PrimFlags.Phantom) != 0);
639 }
640 }
641
624 public Dictionary<int, string> CollisionFilter 642 public Dictionary<int, string> CollisionFilter
625 { 643 {
626 get { return m_CollisionFilter; } 644 get { return m_CollisionFilter; }