Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAYA-111521: Fix error messages showing up when opening the "Applied Schema" category #1434

Merged
merged 1 commit into from
May 27, 2021

Conversation

HamedSabri-adsk
Copy link
Contributor

Description:

Accessing certain AE tabs (e.g Applied Schema, Cylinder Light ) results in "propName.IsEmpty()" error to spit out by USD. We currently allow creating attributes with an empty strings which are not accepted by USD. This doesn't only happen when accessing "Applied Schema" tabs but also in other attribute tabs "Cylinder Light".

In USD land At Line 523 , the property name can't be empty. Hence the error reported.

https://github.com/PixarAnimationStudios/USD/blob/090ef0d849ced875b3b99a15e454b69148ccd8e1/pxr/usd/usd/stage.cpp#L4523

image

@HamedSabri-adsk HamedSabri-adsk added the core Related to core library label May 26, 2021
@HamedSabri-adsk HamedSabri-adsk requested a review from kxl-adsk May 26, 2021 13:30
@kxl-adsk
Copy link

It looks simple and safe, but there is one thing I don't know. @seando-adsk Is it expected to have attributes with empty names? How are they created?

@seando-adsk
Copy link
Collaborator

No it is not expected to have empty attribute names, but there is no harm in protecting against a bad caller passing in an empty string. That is what happens in this case from some bad code in Maya that is trying to optimize boolean attributes onto a single line.

@HamedSabri-adsk HamedSabri-adsk added the ready-for-merge Development process is finished, PR is ready for merge label May 27, 2021
@kxl-adsk kxl-adsk merged commit 5828512 into dev May 27, 2021
@kxl-adsk kxl-adsk deleted the sabrih/MAYA-111521/fix_attribute_with_empty_string branch May 27, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core library ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants