metersPerUnit

This commit is contained in:
D4ve-R
2023-05-18 15:05:32 +02:00
parent 8723d14aee
commit b915da223d
+1
View File
@@ -42,6 +42,7 @@ USDSerializer::USDSerializer(const std::string& out_filename, const SerializerSe
throw std::runtime_error("Could not create USD stage");
pxr::UsdGeomSetStageUpAxis(stage_, pxr::UsdGeomTokens->z);
pxr::UsdGeomSetStageMetersPerUnit(stage_, 1.0f);
auto world = pxr::UsdGeomXform::Define(stage_, pxr::SdfPath("/World"));
stage_->SetDefaultPrim(world.GetPrim());