mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-04 15:23:02 +00:00
comment out worldedit debug stuff
This commit is contained in:
parent
71460cb316
commit
d69dae5087
1 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██████
|
-- ██ ██ ██ ██ ██ ██ ██████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldeditdebug.register("abschk")
|
-- worldeditdebug.register("abschk")
|
||||||
worldedit.register_command("mtrig", {
|
worldedit.register_command("mtrig", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Return the length of each axis of current selection.",
|
description = "Return the length of each axis of current selection.",
|
||||||
|
@ -18,10 +18,10 @@ worldedit.register_command("mtrig", {
|
||||||
local vec = vector.subtract(worldedit.pos2[name],worldedit.pos1[name])
|
local vec = vector.subtract(worldedit.pos2[name],worldedit.pos1[name])
|
||||||
wea.vector.abs(vec)
|
wea.vector.abs(vec)
|
||||||
-- Test:
|
-- Test:
|
||||||
if worldeditdebug.debug["abschk"][name] then
|
-- if worldeditdebug.debug["abschk"][name] then
|
||||||
-- //debug abschk
|
-- -- //debug abschk
|
||||||
return false, "Values = " .. worldeditdebug.table_tostring(vec)
|
-- return false, "Values = " .. worldeditdebug.table_tostring(vec)
|
||||||
end
|
-- end
|
||||||
local len = wea.Vector3.length(vec)
|
local len = wea.Vector3.length(vec)
|
||||||
str = str..len..", X/Z angle: "..math.atan(vec.z/vec.x).."° h/Y angle: "..math.atan(vec.y/len).."°"
|
str = str..len..", X/Z angle: "..math.atan(vec.z/vec.x).."° h/Y angle: "..math.atan(vec.y/len).."°"
|
||||||
return true, str
|
return true, str
|
||||||
|
|
Loading…
Reference in a new issue