-
-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VoxelStreamRegionFiles
does not load the saved data
#596
Comments
Is this happening too if you reproduce this without the editor being open too? Haven't looked into it yet but my first suspicion is that if your scene is open in the editor, some files might be locked by it and the running game might be prevented from opening them by the OS (same with #597). Another possibility depending on how big your cube actually is, is that it simply didnt finish saving when you quit. Using graceful closing with the window's Close button should normally work fine, but if you use Godot's Stop button in the editor, that kills the game's process, leading to incomplete saving. |
Describe the bug
save_modified_blocks
is called, and the region files are successfully saved (visible in file browser)To Reproduce
See above or use this test project
In the test project, press E to make an edit, and then R to save.
VoxelSaveLoadTest.zip
Expected behavior
I assume since there are no load methods, that the region loads the data automatically. However, the saved edits do not appear to load.
Debugging
I did some prodding around in the source and believe this is being hit, indicating the region cache is not loading correctly
godot_voxel/streams/region/voxel_stream_region_files.cpp
Lines 172 to 174 in 2acfab8
Environment
The text was updated successfully, but these errors were encountered: