Skip to content

Commit b89f343

Browse files
committed
Trim when looking for texture layer name
1 parent 624903a commit b89f343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/studio/formats/textures/GroupPhotoshopManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const loadGroupFromPsdFile = async (arrayBuffer: ArrayBuffer, group: Text
113113
const managedTextures: Texture[] = []
114114

115115
const promises = psd.children.map(async (child) => {
116-
const texture = textures.find(t => t.name.value.toLowerCase() === child.name?.toLowerCase() && managedTextures.indexOf(t) === -1)
116+
const texture = textures.find(t => t.name.value.trim().toLowerCase() === child.name?.trim()?.toLowerCase() && managedTextures.indexOf(t) === -1)
117117
if (!texture) {
118118
return
119119
}

0 commit comments

Comments
 (0)