mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Merge branch 'master' into careminster
This commit is contained in:
@@ -7105,6 +7105,36 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.SetCameraAtOffset(offset);
|
||||
}
|
||||
|
||||
public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (link == ScriptBaseClass.LINK_SET ||
|
||||
link == ScriptBaseClass.LINK_ALL_CHILDREN ||
|
||||
link == ScriptBaseClass.LINK_ALL_OTHERS) return;
|
||||
|
||||
SceneObjectPart part = null;
|
||||
|
||||
switch (link)
|
||||
{
|
||||
case ScriptBaseClass.LINK_ROOT:
|
||||
part = m_host.ParentGroup.RootPart;
|
||||
break;
|
||||
case ScriptBaseClass.LINK_THIS:
|
||||
part = m_host;
|
||||
break;
|
||||
default:
|
||||
part = m_host.ParentGroup.GetLinkNumPart(link);
|
||||
break;
|
||||
}
|
||||
|
||||
if (null != part)
|
||||
{
|
||||
part.SetCameraEyeOffset(eye);
|
||||
part.SetCameraAtOffset(at);
|
||||
}
|
||||
}
|
||||
|
||||
public LSL_String llDumpList2String(LSL_List src, string seperator)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
@@ -336,6 +336,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void llSetBuoyancy(double buoyancy);
|
||||
void llSetCameraAtOffset(LSL_Vector offset);
|
||||
void llSetCameraEyeOffset(LSL_Vector offset);
|
||||
void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at);
|
||||
void llSetCameraParams(LSL_List rules);
|
||||
void llSetClickAction(int action);
|
||||
void llSetColor(LSL_Vector color, int face);
|
||||
|
||||
@@ -1515,6 +1515,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_LSL_Functions.llSetCameraEyeOffset(offset);
|
||||
}
|
||||
|
||||
public void llSetLinkCamera(LSL_Integer link, LSL_Vector eye, LSL_Vector at)
|
||||
{
|
||||
m_LSL_Functions.llSetLinkCamera(link, eye, at);
|
||||
}
|
||||
|
||||
public void llSetCameraParams(LSL_List rules)
|
||||
{
|
||||
m_LSL_Functions.llSetCameraParams(rules);
|
||||
|
||||
Reference in New Issue
Block a user