94b1d21e9e
We were writing out the `inputs:varname` as a `token` instead of `string` which is incorrect according to the UsdPreviewSurface spec[1]. Apparently it changed with version 2.3[2]. This results in a validation failure in USD 24.05, and maybe 24.03, seen here: ``` Incorrect type for /root/_materials/Material/UV_Map.inputs:varname. Expected 'string'; got 'token'. (fails 'ShaderPropertyTypeConformanceChecker') Failed! ``` The fix is a 1-liner but I've changed the surrounding code to use `std::string` instead of `pxr::TfToken` to reinforce the concept. Our material reading code is unaffected and was already handling both tokens and strings. [1] https://openusd.org/release/spec_usdpreviewsurface.html#primvar-reader [2] https://openusd.org/release/spec_usdpreviewsurface.html#version-2-3 Pull Request: https://projects.blender.org/blender/blender/pulls/121668 |
||
---|---|---|
.. | ||
blender | ||
creator | ||
CMakeLists.txt |