Closed rainlizard closed 1 year ago
Can anyone still reproduce this bug in Godot 3.2.3 rc3 or any later release?
If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop.
Yeah it's still busted, but after reading my original bug report I think I wasn't very clear.
This is all about the inability to overwrite a file when the "Merge With Existing" option is unchecked.
This issue only occurs when saving over an existing file. (so the workaround is to use a new filename)
Godot version: Godot_v3.2.3-rc3_win64 Minimal Reproduction Project: meshlibrarybug.zip
Steps to reproduce:
Bug: the cube is still in there even though I deleted the cube.
Ok this is weird. I tried the steps and the cube got removed. So I tried again to make sure and I could remove the second mesh. I inspected the meshlib file and it wasn't there, so I restarted the editor and the mesh was gone. Before restarting editor I tried removing the meshlib from gridmap and reloading scene and nothing helped, so the resource was probably cached somewhere. When you overwrite the meshlib, it doesn't get reloaded properly, hence this issue.
Coincidentally I ran into a very similar issue today which made me create a proposal: https://github.com/godotengine/godot-proposals/issues/1400 Still, this is bugged. If you overwrite something from editor, it should be properly reloaded.
Oops you're completely right, my bad. It is overwriting the file. The .meshlib file is decreasing in filesize from 99KB to 66KB when I remove the cube and save it. You're right it's the editor itself that isn't noticing the newly updated file until you restart Godot.
However the funny thing is, it updates the resource in the Gridmap instantly if you add a new mesh using a "Merge With Existing" (checked). You don't have to restart Godot at all in that particular case.
Godot version: Godot Engine v3.1.beta4
The workaround is to use a different filename when converting the Mesh Library, then load the new filename into your GridMap and it will be a fresh Mesh Library.