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

[al] import primvars as colour sets (#1029) #274

Merged

Conversation

robthebloke
Copy link
Contributor

Previously the file import for AL_USDMaya would blindly create any float3/float4 primvar as a colour set. This would mean that any other vector based primvar (e.g. tangents/binormals) would end up being imported as colours.

This PR changes the exported colour set type to be Color3f/Color4f, and also checks the primvar role to see if the primvar is a Color type. If it is, it will be treated as a colour set.

Rob Bateman added 2 commits February 11, 2020 17:28
Copy link
Contributor

@HamedSabri-adsk HamedSabri-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @robthebloke . LGTM!

Would be nice if you can add a sample file perhaps under plugin/al/samples that we could share with QA.

@kxl-adsk kxl-adsk merged commit e70bafd into Autodesk:dev Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants