浏览代码

tools: source path must include the extension

Daniele Bartolini 9 月之前
父节点
当前提交
190e9aa6d7
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      docs/changelog.rst
  2. 1 1
      tools/resource/sound_resource.vala

+ 1 - 0
docs/changelog.rst

@@ -9,6 +9,7 @@ Changelog
 * Sped up deployers by enabling incremental data compilation.
 * Added mouse-only shortcuts (middle-button/wheel) to tumble/dolly the camera.
 * Added support to JPEG image format for textures.
+* Fixed importing sounds.
 
 **Runtime**
 

+ 1 - 1
tools/resource/sound_resource.vala

@@ -29,7 +29,7 @@ public class SoundResource
 			}
 
 			Hashtable sound = new Hashtable();
-			sound["source"] = resource_name;
+			sound["source"] = resource_path;
 
 			try {
 				SJSON.save(sound, project.absolute_path(resource_name) + ".sound");