mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
update libomv with vector2 and 3 IsZero()
This commit is contained in:
@@ -8020,7 +8020,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.SetCameraEyeOffset(offset);
|
||||
|
||||
if (m_host.ParentGroup.RootPart.GetCameraEyeOffset() == Vector3.Zero)
|
||||
if (m_host.ParentGroup.RootPart.GetCameraEyeOffset().IsZero())
|
||||
m_host.ParentGroup.RootPart.SetCameraEyeOffset(offset);
|
||||
}
|
||||
|
||||
@@ -8028,7 +8028,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.SetCameraAtOffset(offset);
|
||||
|
||||
if (m_host.ParentGroup.RootPart.GetCameraAtOffset() == Vector3.Zero)
|
||||
if (m_host.ParentGroup.RootPart.GetCameraAtOffset().IsZero())
|
||||
m_host.ParentGroup.RootPart.SetCameraAtOffset(offset);
|
||||
}
|
||||
|
||||
@@ -15506,7 +15506,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
Vector3 v = t.p3 - t.p1;
|
||||
Vector3 n = Vector3.Cross(u, v);
|
||||
|
||||
if (n == Vector3.Zero)
|
||||
if (n.IsZero())
|
||||
continue;
|
||||
|
||||
Vector3 w0 = rayStart - t.p1;
|
||||
|
||||
@@ -3276,11 +3276,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (!module.CheckPermissions(npcId, m_host.OwnerID))
|
||||
return;
|
||||
|
||||
UUID ImageID = new UUID();
|
||||
|
||||
ImageID = ScriptUtils.GetAssetIdFromItemName(m_host, image, (int)AssetType.Texture);
|
||||
|
||||
if (ImageID == null || ImageID.IsZero())
|
||||
UUID ImageID = ScriptUtils.GetAssetIdFromItemName(m_host, image, (int)AssetType.Texture);
|
||||
if (ImageID.IsZero())
|
||||
{
|
||||
if (!UUID.TryParse(image, out ImageID))
|
||||
return;
|
||||
|
||||
@@ -228,7 +228,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
Group = part.GroupID;
|
||||
Name = part.Name;
|
||||
Owner = part.OwnerID;
|
||||
if (part.Velocity == Vector3.Zero)
|
||||
if (part.Velocity.IsZero())
|
||||
Type = PASSIVE;
|
||||
else
|
||||
Type = ACTIVE;
|
||||
@@ -289,7 +289,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
Rotation = new LSL_Types.Quaternion(obj.rotQuat);
|
||||
Velocity = new LSL_Types.Vector3(obj.velVector);
|
||||
LinkNum = obj.linkNumber;
|
||||
if(obj.velVector == Vector3.Zero)
|
||||
if(obj.velVector.IsZero())
|
||||
Type = 4;
|
||||
else
|
||||
Type = 2;
|
||||
|
||||
Reference in New Issue
Block a user