Closed ondratu closed 3 years ago
I can't get this to happen, can you post an example file with the problem?
Load the file
Do change
Save file (whatever you use FIle->Save or Ctrl+S)
Files in directory, eggbot.ldr is file which i load before, eggbot is new one:
drwxr-xr-x 2 mcbig mcbig 4096 Mar 14 13:11 .
drwxr-xr-x 14 mcbig mcbig 4096 Mar 8 16:59 ..
-rw-r--r-- 1 mcbig mcbig 6769 Mar 14 13:11 eggbot
-rw-r--r-- 1 mcbig mcbig 6769 Mar 9 22:35 eggbot.ldr
It's look like, that problem is in extension in file path. I try to use dat as file extension, but it is the same. Only ldr
and dat
files are listed in open file dialog with supported types selected.
And this do any files.
I think the problem here is that you're trying to save a file with submodels with the .ldr extension. The app sees that and prompts you to choose a new name instead, as files with submodels should be saved with the .mpd extension instead (according to the current spec).
The open dialog should show ".lcd .ldr .dat .mpd", I don't see any places that show only ".ldr .dat", can you double check?
The lack of extension in your case is OS dependent, on Windows and Linux-KDE it will add the extension automatically.
You are right, when i use mpd file extension, that works fine. Leocad behavior is:
So:
LeoCAD is in QT, which i don't know, so i can't help you with it.
there could be file type for each extension in open/save dialog default extension could be model (.mpd) no submodel (.ldr) like now
That's how it works right now
When model have submodels, Save As could be right, but with model extension, no without extension like now
This part depends on your Window Manager, it works like that for Windows and KDE. What are you using?
there could be file type for each extension in open/save dialog default extension could be model (.mpd) no submodel (.ldr) like now
That's how it works right now
No, my version in Debian Linux have dafault extension .ldr
. I just start LeoCAD -> add some part, then File -> Save -> in Save As dialog, I see New Model.ldr. So default extension is submodel now.
When model have submodels, Save As could be right, but with model extension, no without extension like now
This part depends on your Window Manager, it works like that for Windows and KDE. What are you using?
Gnome, but how Window Manager could have effect to selected extension on Save As dialog ? That does not make sense.
Problem
Hi, when i modify model, and then save it, save-as dialog try to save file with same path, same name, but without extension. Supported files are select on dialog, and i don's see any file. I must select all files, next select my ldr file and then save the file.
Other process goes to new file with same name, but without extension.
version
LeoCAD Version 19.07.01 (Debian Bullseye (Testing))
Qt Version 5.12.5 (compiled with 5.12.5)
OpenGL Version 3.0 Mesa 19.3.3 (GLSL 1.30) Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2) - Intel Open Source Technology Center
Color Buffer: 24 bits RGBA double buffered Depth Buffer: 24 bits Stencil Buffer: 8 bits
GL_ARB_vertex_buffer_object extension: Supported GL_ARB_framebuffer_object extension: Supported GL_EXT_framebuffer_object extension: Supported GL_EXT_blend_func_separate: Supported GL_EXT_texture_filter_anisotropic extension: Supported (max 16)