Browse Source

Fix newModel options;

bjorn 4 years ago
parent
commit
fe28f65170
2 changed files with 14 additions and 14 deletions
  1. 7 7
      api/init.lua
  2. 7 7
      api/lovr/headset/newModel.lua

+ 7 - 7
api/init.lua

@@ -15780,13 +15780,6 @@ return {
                   type = "Device",
                   description = "The device to load a model for.",
                   default = "head"
-                }
-              },
-              returns = {
-                {
-                  name = "model",
-                  type = "Model",
-                  description = "The new Model, or `nil` if a model could not be loaded."
                 },
                 {
                   name = "options",
@@ -15802,6 +15795,13 @@ return {
                     }
                   }
                 }
+              },
+              returns = {
+                {
+                  name = "model",
+                  type = "Model",
+                  description = "The new Model, or `nil` if a model could not be loaded."
+                }
               }
             }
           },

+ 7 - 7
api/lovr/headset/newModel.lua

@@ -8,13 +8,6 @@ return {
       type = 'Device',
       default = 'head',
       description = 'The device to load a model for.'
-    }
-  },
-  returns = {
-    {
-      name = 'model',
-      type = 'Model',
-      description = 'The new Model, or `nil` if a model could not be loaded.'
     },
     {
       name = 'options',
@@ -31,6 +24,13 @@ return {
       }
     }
   },
+  returns = {
+    {
+      name = 'model',
+      type = 'Model',
+      description = 'The new Model, or `nil` if a model could not be loaded.'
+    }
+  },
   notes = 'This is only supported on the `openvr` and `vrapi` drivers right now.',
   example = [[
     local models = {}