瀏覽代碼

Fix vector.pack z default;

bjorn 2 月之前
父節點
當前提交
b3a7797a9a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      api/init.lua
  2. 1 1
      api/lovr/vector/pack.lua

+ 1 - 1
api/init.lua

@@ -42988,7 +42988,7 @@ return {
                   name = "z",
                   type = "number",
                   description = "The z component of the vector.",
-                  default = "z"
+                  default = "x"
                 }
               },
               returns = {

+ 1 - 1
api/lovr/vector/pack.lua

@@ -16,7 +16,7 @@ return {
     },
     z = {
       type = 'number',
-      default = 'z',
+      default = 'x',
       description = 'The z component of the vector.'
     }
   },