diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-06 22:58:58 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-06 23:02:59 +0200 |
commit | 7f845d913a99c383066ede6234802c97c2c02822 (patch) | |
tree | 52f3f0a6bcaa9cd147ff6c5156bb56bd2837b7e8 /editor | |
parent | 30f379df6ae2247d7a769cd15240a25d1b03085a (diff) |
Fix warning message spam when a VoxelGI node is selected in the editor
Support for anisotropy in VoxelGI was removed during its development
due to the high cost. This was a leftover from anisotropy support.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/voxel_gi_editor_plugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/plugins/voxel_gi_editor_plugin.cpp b/editor/plugins/voxel_gi_editor_plugin.cpp index d30cc7ad17..162379a49d 100644 --- a/editor/plugins/voxel_gi_editor_plugin.cpp +++ b/editor/plugins/voxel_gi_editor_plugin.cpp @@ -69,10 +69,7 @@ void VoxelGIEditorPlugin::_notification(int p_what) { const Vector3i size = voxel_gi->get_estimated_cell_size(); String text = vformat(String::utf8("%d × %d × %d"), size.x, size.y, size.z); - int data_size = 4; - if (GLOBAL_GET("rendering/quality/voxel_gi/anisotropic")) { - data_size += 4; - } + const int data_size = 4; const double size_mb = size.x * size.y * size.z * data_size / (1024.0 * 1024.0); text += " - " + vformat(TTR("VRAM Size: %s MB"), String::num(size_mb, 2)); |