refactor: Use LSL_Vector(Vector3) constructor in llGetCenterOfMass()

user_profiles
Justin Clark-Casey (justincc) 2013-03-14 22:14:32 +00:00
parent ff6a16b46e
commit 7b85279dba
1 changed files with 2 additions and 2 deletions

View File

@ -4877,8 +4877,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector llGetCenterOfMass()
{
m_host.AddScriptLPS(1);
Vector3 center = m_host.GetCenterOfMass();
return new LSL_Vector(center.X,center.Y,center.Z);
return new LSL_Vector(m_host.GetCenterOfMass());
}
public LSL_List llListSort(LSL_List src, int stride, int ascending)