Fix T90519: USD Exporter Error

Fixes: `Error: metersPerUnit does not match retrieved type float`
This commit is contained in:
Michael Kowalski 2021-08-11 09:35:38 -03:00 committed by Germano Cavalcante
parent 62cb5c5c4a
commit bbcb60fb22
Notes: blender-bot 2023-02-14 04:40:22 +01:00
Referenced by issue #90519, USD Exporter Error: metersPerUnit does not match retrieved type float
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ static void export_startjob(void *customdata,
usd_stage->SetMetadata(pxr::UsdGeomTokens->upAxis, pxr::VtValue(pxr::UsdGeomTokens->z));
usd_stage->SetMetadata(pxr::UsdGeomTokens->metersPerUnit,
pxr::VtValue(scene->unit.scale_length));
static_cast<double>(scene->unit.scale_length));
usd_stage->GetRootLayer()->SetDocumentation(std::string("Blender v") +
BKE_blender_version_string());