mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-11 05:32:38 +01:00
Attempt to add variable shapeLimit.
This commit is contained in:
parent
306c08f356
commit
0fca2d8da8
@ -78,7 +78,15 @@ local localization = system.getLocalization(currentScriptDirectory .. "Localizat
|
||||
local currentLayer = 0
|
||||
local model
|
||||
local savePath
|
||||
local shapeLimit = 24
|
||||
|
||||
if component.isAvailable("printer3d") then
|
||||
local printer3d = component.get("printer3d")
|
||||
local shapeLimit = printer3d.getMaxShapeCount()
|
||||
--Might also be getShapeCount(), as it's doc info talks about a config file.
|
||||
else
|
||||
local shapeLimit = 24
|
||||
end
|
||||
|
||||
local viewPixelWidth, viewPixelHeight = 4, 2
|
||||
|
||||
local colors, hue, hueStep = {}, 0, 360 / shapeLimit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user