File not found when changing DSP/EBM file source
Open Source Solid Modeling CAD
Brought to you by:
brlcad
I've reported this on Zulip before, but I don't think it's been treated yet so I thought I would create a ticket so that it doesn't get lost. After creating a DSP object (draw dsp-file) with a file source, commands are:
draw dsp-file
sed dsp-file
Then selecting the Edit menu "Name" option to change the source. A file browser appears, but when a dsp file is selected, a message appears that the file is either empty or does not exist, even if it is there (screenshots included).
This error is presumably caused by how the file path is returned compared to how the file path is treated: tk_getOpenFile() will return an absolute path but bu_open_mapped_file_with_path() expects a relative path.
Also worth mentioning: when a DSP is created through an object-source, the edit "Name" option still opens up the file browser.
Since I did some work for a GUI to edit an EBM data source, perhaps the same logic (once it's completed) could be applied here?
This issue is not being caused by absolute/relative paths, but because of Windows style file paths. It has already been reported in BUGS, but the other issue mentioned should still exist.