Skip to content

Commit 8cdf209

Browse files
authored
Merge pull request #5021 from secondlife/rider/missing_vector
Missing vector function.
2 parents 7e09943 + 5a88ef4 commit 8cdf209

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

indra/newview/app_settings/types_lua_default.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,35 @@
909909
<key>comment</key>
910910
<string>Creates a vector from a string argument in format `&lt;1,1,1&gt;` Invalid strings will return `nil` #### Caveat Due to an old error from lsl strings that match upto the closing `&gt;` are interpreted as valid So `&lt;1,1,1`, `&lt;1,1,1,1` and `&lt;1,1,1spoon` are all cast to `&lt;1,1,1&gt;` When testing if a string is a quaternion or a vector, you should test with `toquaternion` first.</string>
911911
</map>
912+
<map>
913+
<key>name</key>
914+
<string>vector</string>
915+
<key>parameters</key>
916+
<array>
917+
<map>
918+
<key>name</key>
919+
<string>x</string>
920+
<key>type</key>
921+
<string>number</string>
922+
</map>
923+
<map>
924+
<key>name</key>
925+
<string>y</string>
926+
<key>type</key>
927+
<string>number</string>
928+
</map>
929+
<map>
930+
<key>name</key>
931+
<string>z</string>
932+
<key>type</key>
933+
<string>number</string>
934+
</map>
935+
</array>
936+
<key>returnType</key>
937+
<string>vector</string>
938+
<key>comment</key>
939+
<string>Creates a vector from x,y,z</string>
940+
</map>
912941
<map>
913942
<key>name</key>
914943
<string>quaternion</string>

0 commit comments

Comments
 (0)