mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Fix identifier being replaced with underscores on image drag drop (closes #1874)
Note: The dot selector matches all characters. Oops
This commit is contained in:
@@ -33,7 +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(".", "_")
|
||||
identifier = identifier:gsub("%p", "_") -- replace all punctuation characters with '_'
|
||||
return [[openspace.addScreenSpaceRenderable({
|
||||
Identifier = "]] .. identifier .. [[",
|
||||
Type = "ScreenSpaceImageLocal",
|
||||
|
||||
Reference in New Issue
Block a user