Cannot load a maya reference to an usd file from referenceEditor
- Dominant language
- Wolfram Language
- Stars
- 905
- Forks
- 223
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 17
Description
**Describe the bug**
When loading an unloaded maya usd reference from the reference editor, maya loses the file type and confuses it with an image. A fcheck process is launched instead of reading the usd hierarchy.
**Steps to reproduce**
1. Execute following script to create a reference to the usd file in attached [simpleUsdFile.zip](https://github.com/Autodesk/maya-usd/files/7086001/simpleUsdFile.zip).
```python
from maya import cmds
cmds.loadPlugin('mayaUsdPlugin')
refFile = cmds.file('simpleUsdFile.usd', reference=True, deferReference=True, type='USD Import')
```
2. Click on the checkBox in the referenceEditor to load the created reference
3. Notice that the file was not read, and is not handled anymore by "USD Import" translator :
```python
cmds.file(refFile, q=True, type=True)
# Result: [u'image'] #
```
**Specs (if applicable):**
- Linux
- Maya 2020 and 2022
- maya-usd 0.12.0
- USD 21.8.0
**Additional context**
We noticed that it only occurs with `usdc` files (with `.usd` or `.usdc` extensions) never with usd ascii files.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.