mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +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 = {
|
file_type = {
|
||||||
"ma": "mayaAscii",
|
"ma": "mayaAscii",
|
||||||
"mb": "mayaBinary",
|
"mb": "mayaBinary",
|
||||||
"abc": "Alembic"
|
"abc": "Alembic",
|
||||||
|
"fbx": "FBX"
|
||||||
}.get(representation["name"])
|
}.get(representation["name"])
|
||||||
|
|
||||||
assert file_type, "Unsupported representation: %s" % representation
|
assert file_type, "Unsupported representation: %s" % representation
|
||||||
|
|
@ -234,7 +235,7 @@ class ReferenceLoader(Loader):
|
||||||
path = self.prepare_root_value(path,
|
path = self.prepare_root_value(path,
|
||||||
representation["context"]
|
representation["context"]
|
||||||
["project"]
|
["project"]
|
||||||
["code"])
|
["name"])
|
||||||
content = cmds.file(path,
|
content = cmds.file(path,
|
||||||
loadReference=reference_node,
|
loadReference=reference_node,
|
||||||
type=file_type,
|
type=file_type,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue