Skip to content

Commit

Permalink
Fix timecode was not set properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Apr 26, 2024
1 parent 8ef7ad3 commit 047515d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/tydra_to_renderscene/to-renderscene-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ int main(int argc, char **argv) {
// env.asset_resolver(arr);
}

double timecode = tinyusdz::value::TimeCode::Default();
// When Xform, Mesh, Material, etc. have time-varying values,
// values are evaluated at `timecode` time(except for animation values in SkelAnimation)
env.timecode = tinyusdz::value::TimeCode::Default();
bool ret = converter.ConvertToRenderScene(env, &render_scene);
if (!ret) {
std::cerr << "Failed to convert USD Stage to RenderScene: \n" << converter.GetError() << "\n";
Expand Down

0 comments on commit 047515d

Please sign in to comment.