diff options
author | Melanie | 2013-01-09 20:07:21 +0100 |
---|---|---|
committer | Melanie | 2013-01-09 20:07:21 +0100 |
commit | 949da1d4af77247786b00041bc0d1732617b7286 (patch) | |
tree | a2b7397ab3364f36c3c19ac5a13d583e2efd4d46 /OpenSim/Region | |
parent | fix llGetRot and parameters prim_rotation for attachments. Only on (diff) | |
download | opensim-SC-949da1d4af77247786b00041bc0d1732617b7286.zip opensim-SC-949da1d4af77247786b00041bc0d1732617b7286.tar.gz opensim-SC-949da1d4af77247786b00041bc0d1732617b7286.tar.bz2 opensim-SC-949da1d4af77247786b00041bc0d1732617b7286.tar.xz |
Change IsRoot to use ReferenceEquals to prevent operator == messiness
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2191cfa..b62667f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -144,7 +144,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
144 | /// </remarks> | 144 | /// </remarks> |
145 | public bool IsRoot | 145 | public bool IsRoot |
146 | { | 146 | { |
147 | get { return ParentGroup.RootPart == this; } | 147 | get { return Object.ReferenceEquals(ParentGroup.RootPart, this); } |
148 | } | 148 | } |
149 | 149 | ||
150 | /// <summary> | 150 | /// <summary> |