Add GitHub workflow and LuaCheck (#5)
* Add GitHub workflow and LuaCheck * Fix warning reported by LuaCheck * Add build status and license badge * Remove unused variable (fix warning) * Revert "Remove unused variable (fix warning)"
This commit is contained in:
parent
1dd3aa4000
commit
4d82af8f9d
11
.github/workflows/build.yml
vendored
Normal file
11
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
on: [push, pull_request]
|
||||||
|
name: build
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: lint
|
||||||
|
uses: Roang-zero1/factorio-mod-luacheck@master
|
||||||
|
with:
|
||||||
|
luacheckrc_url: ""
|
15
.luacheckrc
Normal file
15
.luacheckrc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
unused_args = false
|
||||||
|
allow_defined_top = true
|
||||||
|
max_line_length = 999
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
string = {fields = {"split", "trim"}},
|
||||||
|
table = {fields = {"copy", "getn", "indexof"}},
|
||||||
|
|
||||||
|
"minetest", "DIR_DELIM",
|
||||||
|
"vector", "VoxelArea",
|
||||||
|
}
|
||||||
|
|
||||||
|
ignore = {
|
||||||
|
"vertList",
|
||||||
|
}
|
@ -1,5 +1,8 @@
|
|||||||
# Meshport (Minetest Mesh Exporter)
|
# Meshport (Minetest Mesh Exporter)
|
||||||
|
|
||||||
|
[](https://github.com/random-geek/meshport/actions)
|
||||||
|
[](https://www.gnu.org/licenses/lgpl-3.0.en.html)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Meshport is a mod which allows easy exporting of scenes from Minetest to `.obj` files, complete with materials and textures. These models can be imported directly into Blender or another 3D program for rendering and animation.
|
Meshport is a mod which allows easy exporting of scenes from Minetest to `.obj` files, complete with materials and textures. These models can be imported directly into Blender or another 3D program for rendering and animation.
|
||||||
|
@ -98,7 +98,7 @@ function meshport.Boxes:to_faces(nodeTiles, pos, facedir)
|
|||||||
{{x = b[4], y = b[2]}, {x = b[4], y = b[5]}, {x = b[1], y = b[5]}, {x = b[1], y = b[2]}}, -- Z-
|
{{x = b[4], y = b[2]}, {x = b[4], y = b[5]}, {x = b[1], y = b[5]}, {x = b[1], y = b[2]}}, -- Z-
|
||||||
}
|
}
|
||||||
|
|
||||||
local tileIdx, vertNorm
|
local vertNorm
|
||||||
|
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
-- Fix offset texture coordinates.
|
-- Fix offset texture coordinates.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user