Update to tinyusdz "dev" branch commit f8f9bb8
parent
0bba1aa5b5
commit
caf3051c67
|
@ -1433,6 +1433,10 @@ class TypedAttribute {
|
||||||
void set_value_empty() { _value_empty = true; }
|
void set_value_empty() { _value_empty = true; }
|
||||||
|
|
||||||
bool is_value_empty() const {
|
bool is_value_empty() const {
|
||||||
|
if (is_connection()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (_value_empty) {
|
if (_value_empty) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1736,7 +1736,10 @@ bool RenderSceneConverter::ConvertUVTexture(const Path &tex_abs_path,
|
||||||
PUSH_ERROR_AND_RETURN(fmt::format("Invalid or unsupported token value for 'colorSpace': `{}` ", cs_token.str()));
|
PUSH_ERROR_AND_RETURN(fmt::format("Invalid or unsupported token value for 'colorSpace': `{}` ", cs_token.str()));
|
||||||
}
|
}
|
||||||
texImage.usdColorSpace = cs;
|
texImage.usdColorSpace = cs;
|
||||||
} else {
|
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
if (texture.sourceColorSpace.authored()) {
|
if (texture.sourceColorSpace.authored()) {
|
||||||
UsdUVTexture::SourceColorSpace cs;
|
UsdUVTexture::SourceColorSpace cs;
|
||||||
if (texture.sourceColorSpace.get_value().get_scalar(&cs)) {
|
if (texture.sourceColorSpace.get_value().get_scalar(&cs)) {
|
||||||
|
@ -2658,7 +2661,11 @@ bool from_token(const value::token &tok, ColorSpace *cty) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tok.str() == "srgb") {
|
if (tok.str() == "raw") {
|
||||||
|
(*cty) = ColorSpace::Linear;
|
||||||
|
} else if (tok.str() == "Raw") { // NOTE: Seems uncommon token
|
||||||
|
(*cty) = ColorSpace::Linear;
|
||||||
|
} else if (tok.str() == "srgb") {
|
||||||
(*cty) = ColorSpace::sRGB;
|
(*cty) = ColorSpace::sRGB;
|
||||||
} else if (tok.str() == "linear") {
|
} else if (tok.str() == "linear") {
|
||||||
(*cty) = ColorSpace::Linear;
|
(*cty) = ColorSpace::Linear;
|
||||||
|
|
Loading…
Reference in New Issue