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
джерело eef6f92029
коміт 04806e02ed
1 змінених файлів з 9 додано та 0 видалено

@ -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)