Browse Source

Fix Pass:getType;

bjorn 2 years ago
parent
commit
a8a37e37b1
2 changed files with 9 additions and 4 deletions
  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 = {
               variants = {
                 {
                 {
                   arguments = {},
                   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 = {},
   arguments = {},
   returns = {
   returns = {
-    {
-      name = ' type',
+    type = {
       type = 'PassType',
       type = 'PassType',
       description = 'The type of the Pass.'
       description = 'The type of the Pass.'
     }
     }
@@ -16,7 +15,7 @@ return {
   variants = {
   variants = {
     {
     {
       arguments = {},
       arguments = {},
-      returns = {}
+      returns = { 'type' }
     }
     }
   }
   }
 }
 }