mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
add llGetMaxScaleFactor and llGetMinScaleFactor
This commit is contained in:
@@ -1828,6 +1828,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return ScriptBaseClass.FALSE;
|
||||
}
|
||||
|
||||
public LSL_Float llGetMaxScaleFactor()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
SceneObjectGroup group = m_host.ParentGroup;
|
||||
|
||||
if (group == null || group.IsDeleted || group.inTransit)
|
||||
return 1.0f;
|
||||
|
||||
return (LSL_Float)group.GetMaxGroupResizeScale();
|
||||
}
|
||||
|
||||
public LSL_Float llGetMinScaleFactor()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
SceneObjectGroup group = m_host.ParentGroup;
|
||||
|
||||
if (group == null || group.IsDeleted || group.inTransit)
|
||||
return 1.0f;
|
||||
|
||||
return (LSL_Float)group.GetMinGroupResizeScale();
|
||||
}
|
||||
|
||||
public void llSetScale(LSL_Vector scale)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
Reference in New Issue
Block a user