Skip to content

Commit

Permalink
Fixed an issue when selecting folders for typing sounds in exporting …
Browse files Browse the repository at this point in the history
…projects
  • Loading branch information
coppolaemilio committed Jun 24, 2021
1 parent 99b7424 commit 8f13815
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions addons/dialogic/Nodes/random_audio_stream_player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ func load_samples_from_folder(path):
var file_name = dir.get_next()
while file_name != "":
if not dir.current_is_dir():
if file_name.to_lower().ends_with(".wav") or file_name.to_lower().ends_with(".ogg"):
#print(dir.get_current_dir() + "/" + file_name)
var resource = ResourceLoader.load(dir.get_current_dir() + "/" + file_name)
#print(resource)
var f = file_name.replace('.import', '')
if f.to_lower().ends_with(".wav") or f.to_lower().ends_with(".ogg"):
var resource = ResourceLoader.load(dir.get_current_dir() + "/" + f)
samples.append(resource)
file_name = dir.get_next()
select_samples_from_folder = ""
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Added a new page to the docs about the [Text Events](https://github.com/coppolaemilio/dialogic/blob/main/docs/events/TextEvent.md)
- Fixed a bug when trying to skip fade-in dialog animations [[idontkillcoyotes](https://github.com/idontkillcoyotes)]
- Fixed an issue with typing sounds in exported projects
- Fixed an issue when selecting folders for typing sounds in exporting projects; Thank you [AnidemDex](https://github.com/AnidemDex)!


## v1.2 - Organize it!
Expand Down

0 comments on commit 8f13815

Please sign in to comment.