Skip to content

Commit

Permalink
Fix wrong density map used when redoing the addition of a density map
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed May 12, 2024
1 parent 386c906 commit 0d26337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ For a more detailed list of past and incoming changes, see the commit history.
- Fixed texture import dialog was opening a very tall window (issue #423)
- Fixed detail layers "lines" showing on top of grass quads when MSAA is enabled
- Fixed detail layer chunks disappearing unexpectedly when `map_scale` is very large
- Fixed wrong density map when redoing the addition of a density map (undo/redo)


1.7.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func _add_layer():
node.set_meta("_editor_icon", detail_layer_icon)
node.name = "HTerrainDetailLayer"
var map_index := terrain_data._edit_add_map(HTerrainData.CHANNEL_DETAIL)
var map_image := terrain_data.get_image(HTerrainData.CHANNEL_DETAIL)
var map_image := terrain_data.get_image(HTerrainData.CHANNEL_DETAIL, map_index)
var map_image_cache_id := _image_cache.save_image(map_image)
node.layer_index = map_index

Expand Down

0 comments on commit 0d26337

Please sign in to comment.