mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix call to load file in case of fbx file
This commit is contained in:
parent
1c133cf6b1
commit
eb0e014bea
1 changed files with 9 additions and 3 deletions
|
|
@ -236,10 +236,16 @@ 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,
|
||||
loadReference=reference_node,
|
||||
type=file_type,
|
||||
returnNewNodes=True)
|
||||
**params)
|
||||
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