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

Remove unit settings from distance nodedefs inputs #1406

Merged

Conversation

zicher3d
Copy link
Collaborator

Specifying both "unittype" and "unit" in nodedefs breaks something, and the conversion between units does not happen when switching them in Viewer.

This change remove "units" from nodedefs inputs of type "distance".

Note that "unit" remains for angles. Removing it causes an error (likely a bug) at load time. "Unrecognized destination unit: meter"
Seems like materialX tries to convert degrees to meters.

While things seem to be still a bit buggy for angles, this seem to currently work at least for distances. Viewer doesn't not allow to change the angle unit, so it can't be tested in that environment. It's likely that angle will fail as distances were failing when unit was present.

Specifying both "unittype" and "unit" in nodedefs breaks something, and the conversion between units does not happen when switching them in Viewer.

This change remove "units" from nodedefs inputs of type "distance".

Note that "unit" remains for angles. Removing it causes an error (likely a bug) at load time.
"Unrecognized destination unit: meter"
Seems like materialX tries to convert degrees to meters.

While things seem to be still a bit buggy for angles, this seem to currently work at least for distences.
Viewer doesn not allow to change the angle unit, so it can't be tested in that environment.
It's likely that angle will fail as distances were failing when unit was present.
@zicher3d zicher3d self-assigned this Sep 30, 2024
Copy link
Collaborator

@ashwinbhat ashwinbhat left a comment

Choose a reason for hiding this comment

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

Looks good to me

@zicher3d zicher3d merged commit 16c091e into adsk_contrib/dev Oct 1, 2024
30 of 32 checks passed
@zicher3d zicher3d deleted the zicher/remove_unit_setting_from_nodedefs branch October 2, 2024 17:23
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.

2 participants