Parcourir la source

Fix Pass:getType;

bjorn il y a 2 ans
Parent
commit
9b7405656a
2 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. 7 1
      api/init.lua
  2. 2 3
      api/lovr/graphics/Pass/getType.lua

+ 7 - 1
api/init.lua

@@ -15315,7 +15315,13 @@ return {
               variants = {
                 {
                   arguments = {},
-                  returns = {}
+                  returns = {
+                    {
+                      name = "type",
+                      type = "PassType",
+                      description = "The type of the Pass."
+                    }
+                  }
                 }
               }
             },

+ 2 - 3
api/lovr/graphics/Pass/getType.lua

@@ -7,8 +7,7 @@ return {
   ]],
   arguments = {},
   returns = {
-    {
-      name = ' type',
+    type = {
       type = 'PassType',
       description = 'The type of the Pass.'
     }
@@ -16,7 +15,7 @@ return {
   variants = {
     {
       arguments = {},
-      returns = {}
+      returns = { 'type' }
     }
   }
 }