From f7cb1b4edbfec30f097ea0f03cc3b7d5c987cbfc Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Mon, 27 Oct 2025 16:16:28 +0100 Subject: [PATCH] Use bounding sphere instead of interaction for debug axes default size Interaction sphere is often zero by default => the axes will not be visible. The bounding sphere better matches the visible size of the object --- modules/debugging/scripts/axes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/debugging/scripts/axes.lua b/modules/debugging/scripts/axes.lua index 93ba88fbb6..6cbdf2594b 100644 --- a/modules/debugging/scripts/axes.lua +++ b/modules/debugging/scripts/axes.lua @@ -21,14 +21,14 @@ openspace.debugging.documentation = { current focus node is used instead. \\param scale An optional parameter that specifies the size of the coordinate axes, in meters. If not specified, the size is set to 2.5 times the - interaction sphere of the selected node. + bounding sphere of the selected node. ]] } } openspace.debugging.createCoordinateAxes = function (nodeIdentifier, scale) local node = nodeIdentifier or openspace.navigation.getNavigationState().Anchor - local sphere = openspace.propertyValue("Scene." .. node .. ".EvaluatedInteractionSphere") + local sphere = openspace.propertyValue("Scene." .. node .. ".EvaluatedBoundingSphere") if sphere == -1 then sphere = 1 end