diff --git a/source/MaterialXCore/Version.cpp b/source/MaterialXCore/Version.cpp index 00d51d4f71..a0939d9dc4 100644 --- a/source/MaterialXCore/Version.cpp +++ b/source/MaterialXCore/Version.cpp @@ -992,15 +992,15 @@ void Document::upgradeVersion() { "color3", 3 }, { "color4", 4 }, { "vector2", 2 }, { "vector3", 3 }, { "vector4", 4 } }; - const std::array, 10> CHANNEL_CONVERT_PATTERNS = { - { + const std::array, 10> CHANNEL_CONVERT_PATTERNS = + { { { "rgb", 3 }, { "rgb", 4 }, { "rgba", 4 }, { "xyz", 3 }, { "xyz", 4 }, { "xyzw", 4 }, { "rr", 1 }, { "rrr", 1 }, { "xx", 1 }, { "xxx", 1 } } }; - const std::array, 3> CHANNEL_ATTRIBUTE_PATTERNS = { - { + const std::array, 3> CHANNEL_ATTRIBUTE_PATTERNS = + { { { { "xx", "xxx", "xxxx" }, "float" }, { { "xyz", "x", "y", "z" }, "vector3" }, { { "rgba", "a" }, "color4" }