From 051a02f7b0c944ef49c0d8141aad02fe6f0545ce Mon Sep 17 00:00:00 2001 From: psiberx Date: Wed, 11 Dec 2024 09:52:46 +0300 Subject: [PATCH] Display node definition --- support/cet/modules/world/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/support/cet/modules/world/main.lua b/support/cet/modules/world/main.lua index 96e7a0a..984a1d3 100644 --- a/support/cet/modules/world/main.lua +++ b/support/cet/modules/world/main.lua @@ -1601,7 +1601,7 @@ local function formatDistance(data) return ('%.2fm'):format(type(data) == 'table' and data.distance or data) end -local function isValidInstanceIndex(data) +local function isValidNodeIndex(data) return type(data.instanceIndex) == 'number' and data.instanceIndex >= 0 and type(data.instanceCount) == 'number' and data.instanceCount > 0 end @@ -1680,10 +1680,10 @@ local resultSchema = { { name = 'nodePosition', label = 'Node Position:', format = formatPosition, validate = validatePosition }, { name = 'nodeOrientation', label = 'Node Orientation:', format = formatOrientation, validate = validateOrientation }, { name = 'nodeScale', label = 'Node Scale:', format = formatScale, validate = validateScale }, - --{ name = 'nodeIndex', label = 'Node Index:', format = '%d', validate = isValidNodeIndex }, - --{ name = 'nodeCount', label = '/', format = '%d', inline = true, validate = isValidNodeIndex }, - { name = 'instanceIndex', label = 'Node Instance:', format = '%d', validate = isValidInstanceIndex }, - { name = 'instanceCount', label = '/', format = '%d', inline = true, validate = isValidInstanceIndex }, + { name = 'nodeIndex', label = 'Node Definition:', format = '%d', validate = isValidNodeIndex }, + { name = 'nodeCount', label = '/', format = '%d', inline = true, validate = isValidNodeIndex }, + { name = 'instanceIndex', label = 'Node Instance:', format = '%d', validate = isValidNodeIndex }, + { name = 'instanceCount', label = '/', format = '%d', inline = true, validate = isValidNodeIndex }, { name = 'sectorPath', label = 'World Sector:', wrap = true }, --{ name = 'nodeScale', label = 'Node Scale:', format = formatScale }, },