Allow AVpos-shifter to modify position and rotation at once.

This commit is contained in:
Sei Lisa 2017-10-19 20:17:48 +02:00 committed by Sei-Lisa
parent 708f7fb2e1
commit 6ed9496177

View file

@ -143,8 +143,13 @@ default
if (v != ZERO_VECTOR) if (v != ZERO_VECTOR)
{ {
llOwnerSay("Converting positions in " + notecard_name + " by offset: " + (string)v); llOwnerSay("Converting positions in " + notecard_name + " by offset: " + (string)v);
cut_above_text();
target_prim_pos = -v; target_prim_pos = -v;
v = (vector)llList2String(llCSV2List(msg), 1);
if (v != ZERO_VECTOR)
{
target_prim_rot = llEuler2Rot(v * DEG_TO_RAD);
}
cut_above_text();
notecard_query = llGetNotecardLine(notecard_name, notecard_line); notecard_query = llGetNotecardLine(notecard_name, notecard_line);
} }
else else