Browse Source

Fix quat:__mul;

bjorn 6 years ago
parent
commit
8810cce925
2 changed files with 14 additions and 2 deletions
  1. 10 2
      api/init.lua
  2. 4 0
      api/lovr/math/quat/__mul.lua

+ 10 - 2
api/init.lua

@@ -17608,7 +17608,11 @@ return {
               variants = {
                 {
                   arguments = {
-                    nil,
+                    {
+                      name = "q",
+                      type = "quat",
+                      description = "A quaternion."
+                    },
                     {
                       name = "r",
                       type = "quat",
@@ -17625,7 +17629,11 @@ return {
                 },
                 {
                   arguments = {
-                    nil,
+                    {
+                      name = "q",
+                      type = "quat",
+                      description = "A quaternion."
+                    },
                     {
                       name = "v",
                       type = "vec3",

+ 4 - 0
api/lovr/math/quat/__mul.lua

@@ -6,6 +6,10 @@ return {
     result.  If the value is a vector, then a new temporary rotated vector is returned.
   ]],
   arguments = {
+    q = {
+      type = 'quat',
+      description = 'A quaternion.'
+    },
     r = {
       type = 'quat',
       description = 'A quaternion to combine with the original.'