Skip to content

Commit

Permalink
Fix setting isolevel has no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Jun 12, 2024
1 parent cab1b7e commit 50719b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/source/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Primarily developped with Godot 4.3.
- Fixed `set_key_cache_enabled(true)` caused nothing to load
- Fixed slow loading when the database path contains `res:https://` or `user:https://`
- `VoxelInstancer`: Fixed instances with LOD > 0 were generated on `VoxelTerrain` even though LOD isn't supported (ending up in weird positions). No instances should generate.
- `VoxelModifierMesh`: Fixed setting `isolevel` had no effect

- Breaking changes
- `VoxelVoxLoader`: methods are now static, so no instance of the class need to be created
Expand Down
2 changes: 1 addition & 1 deletion modifiers/voxel_modifier_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void VoxelModifierMesh::set_mesh_sdf(Ref<VoxelMeshSDF> mesh_sdf) {

void VoxelModifierMesh::set_isolevel(float isolevel) {
RWLockWrite wlock(_rwlock);
if (isolevel == isolevel) {
if (_isolevel == isolevel) {
return;
}
_isolevel = isolevel;
Expand Down

0 comments on commit 50719b1

Please sign in to comment.