Fix issue when drag-dropping an image that has extra dots in the name (closes #1793)

This commit is contained in:
Alexander Bock
2021-12-29 14:13:59 +01:00
parent d8226f7c1d
commit 4c9337a465
2 changed files with 3 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ local ReloadUIScript = [[ if openspace.hasProperty('Modules.CefWebGui.Reload') t
if is_image_file(extension) then
identifier = basename_without_extension:gsub(" ", "_")
identifier = identifier:gsub(".", "_")
return [[openspace.addScreenSpaceRenderable({
Identifier = "]] .. identifier .. [[",
Type = "ScreenSpaceImageLocal",