Autodesk / Autodesk/maya-usd

Materials Duplicating When Using "Edit As Maya Data"

Open
#3,547 2 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 5h
Merged PRs (30d)
16

Description

**Describe the bug**
After clicking "Edit As Maya Data" on a UsdMesh, it duplicates the materials in the scene if a material of the same name exists.

**Steps to reproduce**
Steps to reproduce the behavior:
1. Create a cube in Maya
2. Assign one lambert material to the top face and one material to the other faces of the cube.
3. Create a new USD layer.
4. Duplicate the Cube as USD data into the stage.
5. Edit the USD Cube as Maya Data.
6. See duplicate materials assigned on the mesh and new materials in the Hypershade.

**Expected behavior**
When hitting the button to "Edit As Maya Data," if the linked materials already exist in the scene, assign that material to the mesh.

**Specs (if applicable):**
- Windows 10
- Codeless Schemas
- Maya 2024.2
- MayaUSD 0.26.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.