-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Performing edit on VoxelTerrain that hasn't loaded yet silently fails #661
Comments
That was intended. Only some VoxelTool implementations used to print errors when partially out of bounds, but then I got reports that didn't want errors to be printed. Now no implementation print anything by default. If you want to be notified of that, something should print if you enable verbose stdout in Godot's debug options (or command line |
IMHO, if a dev does something unsupported or unexpected with the module like that, there should at least be some warning or a notice or something. Instead of suppressing or outright removing the warning, it would be better to address the issue directly and don't try to edit terrain that is not loaded. |
If that's intended, then perhaps return value of |
I could bring back the log as a warning instead of only when verbose output is enabled? I don't really like the idea of having every single edit method return a result like that... that's a lot of methods to modify, in some cases there is already a return value, it breaks compatibility in some cases, and it's going to be either ignored most of the time (which might in turn trigger warnings along the way for "unused return value"), or you'll have to put an |
Ah, you're right, didn't think about warnings of ignoring return value, that could be annoying indeed. I think warning or error by default should be better choice here as opposed to silent fail. |
Changed to warnings in 3a9f3d1 |
Describe the bug
Performing edit (for example using
do_sphere
) on VoxelTerrain or VoxelLodTerrain that hasn't loaded yet silently fails as opposed to printing an error in console.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Some sort of error in console, saying that edit could not be performed.
Environment
MRP
Test silent edit fail on terrain on ready.zip
The text was updated successfully, but these errors were encountered: