Convert internal representation of vertices to double. Also replace remove duplicate vertices with fast hash implementation.
PiperOrigin-RevId: 734516595 Change-Id: Ic78556688d5f2b75d69cd286b8d060e2cdeb7c48
This commit is contained in:
committed by
Copybara-Service
parent
e4ee00e695
commit
4d024f9421
@@ -734,7 +734,7 @@ std::string mjCBase::GetAssetContentType(std::string_view resource_name,
|
||||
auto type = mjuu_parseContentTypeAttrType(raw_text);
|
||||
auto subtype = mjuu_parseContentTypeAttrSubtype(raw_text);
|
||||
if (!type.has_value() || !subtype.has_value()) {
|
||||
throw mjCError(this, "invalid format for content_type");
|
||||
return "";
|
||||
}
|
||||
return std::string(*type) + "/" + std::string(*subtype);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user