From 1bbba17a69bbc00eed854d4a63d9c81e52fec2eb Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Thu, 29 Apr 2021 16:47:37 +0200 Subject: [PATCH] Fix problems with loading textures --- modules/autonavigation/scripts/rendering.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/autonavigation/scripts/rendering.lua b/modules/autonavigation/scripts/rendering.lua index 507eadd95c..58b16d6dc0 100644 --- a/modules/autonavigation/scripts/rendering.lua +++ b/modules/autonavigation/scripts/rendering.lua @@ -40,7 +40,7 @@ openspace.autonavigation.renderPath = function (nrLinesPerSegment, renderPoints, local label_line = "Line" local lineColor = {1.0, 1.0, 0.0} local lineWidth = 4 - local sphereTexture = "${MODULES}/autonavigation/textures/red.png" + local sphereTexture = openspace.absPath("${MODULES}/autonavigation/textures/red.png") local sphereSegments = 50 local label_orientation = "Orientation" local orientationLineColor = {1.0, 0.0, 0.0} @@ -164,7 +164,7 @@ end openspace.autonavigation.renderControlPoints = function (sphereRadius) local base_identifier = "Path_Control_Points" local label_point = "ControlPoint" - local sphereTexture = "${MODULES}/autonavigation/textures/yellow.png" + local sphereTexture = openspace.absPath("${MODULES}/autonavigation/textures/yellow.png") local sphereSegments = 50 if (sphereRadius == nil) then