Autodesk / Autodesk/maya-usd

[EMSUSD-1891] Forced declaration of "inputs:shadow:color" and "inputs:shadow:enable" attributes in all lights

Open
#4,096 1 comment 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**
Maya forces the declaration of the "inputs:shadow:color" and "inputs:shadow:enable" attributes in all lights, instead of reverting to fallback.
Just creating a sphereLight in mayaUsd creates those attributes instead of being declared as fallback by the schema. That by itself is an issue but when combined with lights that are under instance prims, a cascade of errors pop up. Even if the light is on a saved separate file, when sublayering it maya automatically tries to declare those attributes.

**Steps to reproduce**
1. Create a SphereLight in Usd
2. Print Layer to Anonymous Layer
3. 2 new attributes are defined

**Expected behavior**
No attribute declaration

**Attachments**
![Image](https://github.com/user-attachments/assets/6c60aad8-45ab-4484-be71-f4aa45580b4b)

**Specs (if applicable):**
- Windows 11
- Maya 2024.2
- Maya USD 30.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.