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-103736 Clear frameSamples set #326

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

fowlertADSK
Copy link
Contributor

Clear frameSamples set so that we don't add in the default value when the flag is used.

@HamedSabri-adsk HamedSabri-adsk added adsk Related to Autodesk plugin import-export Related to Import and/or Export labels Mar 4, 2020
Copy link

@hamedsabri hamedsabri left a comment

Choose a reason for hiding this comment

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

lgtm! thanks.

@@ -93,6 +93,7 @@ UsdMayaExportTranslator::writer(const MFileObject &file,
theOption[1].split(',', filteredTypes);
}
else if (argName == "frameSample") {
frameSamples.clear();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The default value of 0.0 for frameSample will always be listed in the options. If the flag is explicitly set then we'll parse it a second time and add in all of the associated values, so we need to clear the set before parsing it that second time.

plugin/adsk/plugin/exportTranslator.cpp Show resolved Hide resolved
Copy link

@kxl-adsk kxl-adsk left a comment

Choose a reason for hiding this comment

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

For future - We should avoid code duplication and extract the common components into the core library.

@kxl-adsk kxl-adsk merged commit e20b066 into dev Mar 9, 2020
@kxl-adsk kxl-adsk deleted the fowlert/MAYA-103736/clear_frameSample_array branch March 9, 2020 16:59
ppt-adsk pushed a commit that referenced this pull request Feb 28, 2023
* MAYA-127016 : Support viewport XRay shading mode

* MAYA-127016 : Add a comment for the hardcoded value of opacity and use a struct for the constructor of MayaHydraMaterialNetworkConverter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin import-export Related to Import and/or Export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants