forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unit settings from distance nodedefs inputs (#1406)
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.
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters