mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #3631 from simonebarbieri/bugfix/maya-update_refence_support_fbx
Maya: FBX support for update in reference loader
This commit is contained in:
commit
8fe29c56d3
1 changed files with 3 additions and 2 deletions
|
|
@ -208,7 +208,8 @@ class ReferenceLoader(Loader):
|
|||
file_type = {
|
||||
"ma": "mayaAscii",
|
||||
"mb": "mayaBinary",
|
||||
"abc": "Alembic"
|
||||
"abc": "Alembic",
|
||||
"fbx": "FBX"
|
||||
}.get(representation["name"])
|
||||
|
||||
assert file_type, "Unsupported representation: %s" % representation
|
||||
|
|
@ -234,7 +235,7 @@ class ReferenceLoader(Loader):
|
|||
path = self.prepare_root_value(path,
|
||||
representation["context"]
|
||||
["project"]
|
||||
["code"])
|
||||
["name"])
|
||||
content = cmds.file(path,
|
||||
loadReference=reference_node,
|
||||
type=file_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue