Add PRIM_POS_LOCAL as an alias to PRIM_POSITION for setting the position.

For SL compatibility only
avinationmerge
Melanie 2011-12-24 01:40:09 +01:00
parent eef6f92029
commit 04806e02ed
1 changed files with 9 additions and 0 deletions

View File

@ -7591,6 +7591,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
positionChanged = true; positionChanged = true;
currentPosition = GetSetPosTarget(part, v, currentPosition); currentPosition = GetSetPosTarget(part, v, currentPosition);
break;
case (int)ScriptBaseClass.PRIM_POS_LOCAL:
if (remain < 1)
return;
v=rules.GetVector3Item(idx++);
positionChanged = true;
currentPosition = GetSetPosTarget(part, v, currentPosition);
break; break;
case (int)ScriptBaseClass.PRIM_SIZE: case (int)ScriptBaseClass.PRIM_SIZE:
if (remain < 1) if (remain < 1)