diff options
author | Julian Eisel <julian@blender.org> | 2022-06-30 20:47:21 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-06-30 20:47:21 +0300 |
commit | c9795102c2df3bb3f88e4dd3944383b6688e8f99 (patch) | |
tree | 7675cc13b278836b1b62820464a836ae590feb26 /source/blender/io/usd | |
parent | e7c58941b1f1643c8bb997157eaacac1565fce7c (diff) |
Fix build error with Alembic after 65166e145b4d
Diffstat (limited to 'source/blender/io/usd')
-rw-r--r-- | source/blender/io/usd/intern/usd_capi_export.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/io/usd/intern/usd_capi_export.cc b/source/blender/io/usd/intern/usd_capi_export.cc index 2049c631671..d9995117b70 100644 --- a/source/blender/io/usd/intern/usd_capi_export.cc +++ b/source/blender/io/usd/intern/usd_capi_export.cc @@ -72,7 +72,7 @@ static void export_startjob(void *customdata, *do_update = true; /* For restoring the current frame after exporting animation is done. */ - const int orig_frame = CFRA; + const int orig_frame = scene->r.cfra; pxr::UsdStageRefPtr usd_stage = pxr::UsdStage::CreateNew(data->filepath); if (!usd_stage) { @@ -129,8 +129,8 @@ static void export_startjob(void *customdata, usd_stage->GetRootLayer()->Save(); /* Finish up by going back to the keyframe that was current before we started. */ - if (CFRA != orig_frame) { - CFRA = orig_frame; + if (scene->r.cfra != orig_frame) { + scene->r.cfra = orig_frame; BKE_scene_graph_update_for_newframe(data->depsgraph); } |