Skip to content

Commit

Permalink
Finish import-as-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
faggionluca committed Aug 29, 2021
2 parents adcebed + 7a2055b commit e15006e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion megascan_link_js/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ PainterPlugin {
var urls = []
data.forEach(asset => {
asset.components.forEach(bitmap => {
var lenght = urls.push(alg.resources.importProjectResource(bitmap.path,["texture"],"Megascan/{}({})".format(asset.name, asset.id)))
var usages = alg.resources.allowedUsages(bitmap.path)
var lenght = urls.push(alg.resources.importProjectResource(bitmap.path, usages,"Megascan/{}({})".format(asset.name, asset.id)))
alg.log.info("Resource: {} imported correctly".format(urls[lenght-1]))
})
})
Expand Down

0 comments on commit e15006e

Please sign in to comment.