1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Set the audio layer names to be the imported audio file names

This commit is contained in:
Emmanouil Papadeas 2024-12-08 04:13:37 +02:00
parent 145036f71d
commit 0cef80ab6f

View file

@ -920,7 +920,7 @@ func open_audio_file(path: String) -> void:
if layer is AudioLayer and not is_instance_valid(layer.audio): if layer is AudioLayer and not is_instance_valid(layer.audio):
layer.audio = audio_stream layer.audio = audio_stream
return return
var new_layer := AudioLayer.new(project) var new_layer := AudioLayer.new(project, path.get_basename().get_file())
new_layer.audio = audio_stream new_layer.audio = audio_stream
Global.animation_timeline.add_layer(new_layer, project) Global.animation_timeline.add_layer(new_layer, project)