Fix T90519: USD Exporter Error
Fixes: `Error: metersPerUnit does not match retrieved type float`
This commit is contained in:
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
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue