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:
David Leal 2020-09-05 20:39:34 -05:00 committed by GitHub
parent 1dd3aa4000
commit 4d82af8f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 1 deletions

11
.github/workflows/build.yml vendored Normal file
View 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
View 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",
}

View File

@ -1,5 +1,8 @@
# Meshport (Minetest Mesh Exporter) # Meshport (Minetest Mesh Exporter)
[![Build status](https://github.com/random-geek/meshport/workflows/build/badge.svg)](https://github.com/random-geek/meshport/actions)
[![License](https://img.shields.io/badge/license-LGPLv3.0%2B-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0.en.html)
![screenshot](screenshot.png) ![screenshot](screenshot.png)
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.

View File

@ -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.