mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Fixed with the right type parameter for FBX
This commit is contained in:
parent
eb0e014bea
commit
4d47759249
1 changed files with 4 additions and 10 deletions
|
|
@ -209,7 +209,7 @@ class ReferenceLoader(Loader):
|
|||
"ma": "mayaAscii",
|
||||
"mb": "mayaBinary",
|
||||
"abc": "Alembic",
|
||||
"fbx": "fbx"
|
||||
"fbx": "FBX"
|
||||
}.get(representation["name"])
|
||||
|
||||
assert file_type, "Unsupported representation: %s" % representation
|
||||
|
|
@ -236,16 +236,10 @@ class ReferenceLoader(Loader):
|
|||
representation["context"]
|
||||
["project"]
|
||||
["name"])
|
||||
|
||||
params = {
|
||||
"loadReference": reference_node,
|
||||
"returnNewNodes": True
|
||||
}
|
||||
if file_type != "fbx":
|
||||
params["type"] = file_type
|
||||
|
||||
content = cmds.file(path,
|
||||
**params)
|
||||
loadReference=reference_node,
|
||||
type=file_type,
|
||||
returnNewNodes=True)
|
||||
except RuntimeError as exc:
|
||||
# When changing a reference to a file that has load errors the
|
||||
# command will raise an error even if the file is still loaded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue