Browse Source

Fix non-nested variants list in `lovr.headset.Layer`

pterror 1 year ago
parent
commit
611710a33d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      api/lovr/headset/Layer/getSize.lua

+ 4 - 2
api/lovr/headset/Layer/getSize.lua

@@ -16,8 +16,10 @@ return {
     }
     }
   },
   },
   variants = {
   variants = {
-    arguments = {},
-    returns = { 'width', 'height' }
+    {
+      arguments = {},
+      returns = { 'width', 'height' }
+    }
   },
   },
   notes = 'When a layer is created, its width and height are 1 meter.'
   notes = 'When a layer is created, its width and height are 1 meter.'
 }
 }