Commit 2b2457de authored by rockyl's avatar rockyl

修复图集的问题

parent cd875283
......@@ -213,7 +213,7 @@ export function loadSheet(url, uuid?, cache = true, config?): Promise<Sheet> {
*/
export async function loadSheetDisperse(url, uuid?, cache = true, config?): Promise<Sheet> {
for(let {name, uuid} of config.textures){
let subUrl = url.replace('-disperse', '') + '/' + name.replace('_', '/') + '.png';
let subUrl = url.replace('-disperse', '') + '/' + name + '.png';
await loadTexture(subUrl, uuid);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment