Skip to content

Commit

Permalink
Fixed error when changing TextureSet mode while it has textures in it
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Oct 5, 2023
1 parent 11e0db9 commit 222b4ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ For a more detailed list of past and incoming changes, see the commit history.
- Update properties in the inspector when a custom shader is modified
- Added support for importing and exporting 32-bit raw files
- Fixed brush cursor looked off-center at close range when using tiny brush sizes
- Fixed error when trying to change `TextureSet` mode while it has textures in it


1.7.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func _on_ClearNormal_pressed():


func _on_ModeSelector_item_selected(index: int):
var id = _mode_selector.get_selected_id()
var id := _mode_selector.get_selected_id()
if id == _texture_set.get_mode():
return

Expand All @@ -446,13 +446,13 @@ func _on_ModeSelector_item_selected(index: int):

else:
if _texture_set.get_mode() == HTerrainTextureSet.MODE_TEXTURES:
_mode_confirmation_dialog.window_title = "Switch to TextureArrays"
_mode_confirmation_dialog.title = "Switch to TextureArrays"
_mode_confirmation_dialog.dialog_text = \
"This will unload all textures currently setup. Do you want to continue?"
_mode_confirmation_dialog.popup_centered()

else:
_mode_confirmation_dialog.window_title = "Switch to Textures"
_mode_confirmation_dialog.title = "Switch to Textures"
_mode_confirmation_dialog.dialog_text = \
"This will unload all textures currently setup. Do you want to continue?"
_mode_confirmation_dialog.popup_centered()
Expand Down

0 comments on commit 222b4ab

Please sign in to comment.