rm for ... in
This commit is contained in:
4
gltf.cm
4
gltf.cm
@@ -294,13 +294,13 @@ function used_image_indices(asset) {
|
||||
var used_tex = used_texture_indices(asset)
|
||||
var textures = asset.textures || []
|
||||
|
||||
for (var k in used_tex) {
|
||||
arrfor(array(used_tex), function(k) {
|
||||
var ti = number(k)
|
||||
var t = textures[ti]
|
||||
if (!t) continue
|
||||
if (t.image == null) continue
|
||||
used_imgs[t.image] = true
|
||||
}
|
||||
})
|
||||
|
||||
return used_imgs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user