diff options
author | UbitUmarov | 2016-11-22 05:18:06 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-22 05:18:06 +0000 |
commit | 4e64445c39c3de1941e071ff32d06702a3440d5d (patch) | |
tree | d22dd941e1bb849b525b9d31c9eb3b07f96047bc /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | change asset description max size (diff) | |
download | opensim-SC-4e64445c39c3de1941e071ff32d06702a3440d5d.zip opensim-SC-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.gz opensim-SC-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.bz2 opensim-SC-4e64445c39c3de1941e071ff32d06702a3440d5d.tar.xz |
replace datetime.now on just timming by faster utcnow
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 9d1dca2..3a06e7d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -185,8 +185,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
185 | return | 185 | return |
186 | !(SitTargetPosition == Vector3.Zero | 186 | !(SitTargetPosition == Vector3.Zero |
187 | && (SitTargetOrientation == Quaternion.Identity // Valid Zero Rotation quaternion | 187 | && (SitTargetOrientation == Quaternion.Identity // Valid Zero Rotation quaternion |
188 | || SitTargetOrientation.X == 0f && SitTargetOrientation.Y == 0f && SitTargetOrientation.Z == 1f && SitTargetOrientation.W == 0f // W-Z Mapping was invalid at one point | 188 | || (SitTargetOrientation.W == 0f && SitTargetOrientation.X == 0f && SitTargetOrientation.Y == 0f && SitTargetOrientation.Z == 0f ))); // Invalid Quaternion |
189 | || SitTargetOrientation.X == 0f && SitTargetOrientation.Y == 0f && SitTargetOrientation.Z == 0f && SitTargetOrientation.W == 0f)); // Invalid Quaternion | ||
190 | } | 189 | } |
191 | } | 190 | } |
192 | 191 | ||
@@ -1909,7 +1908,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1909 | 1908 | ||
1910 | public void ResetExpire() | 1909 | public void ResetExpire() |
1911 | { | 1910 | { |
1912 | Expires = DateTime.Now + new TimeSpan(600000000); | 1911 | Expires = DateTime.UtcNow + new TimeSpan(600000000); |
1913 | } | 1912 | } |
1914 | 1913 | ||
1915 | public void AddFlag(PrimFlags flag) | 1914 | public void AddFlag(PrimFlags flag) |