Skip to content

Commit

Permalink
Fix getting optional scene time (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
msz-rai authored Jul 5, 2023
1 parent 7afad70 commit 72fb12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph/RaytraceNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void RaytraceNode::schedule(cudaStream_t stream)
.ringIds = ringIds.has_value() ? (*ringIds)->getDevicePtr() : nullptr,
.ringIdsCount = ringIds.has_value() ? (*ringIds)->getCount() : 0,
.scene = sceneAS,
.sceneTime = scene->getTime()->asSeconds(),
.sceneTime = scene->getTime().has_value() ? scene->getTime()->asSeconds() : 0,
.xyz = getPtrTo<XYZ_F32>(),
.isHit = getPtrTo<IS_HIT_I32>(),
.rayIdx = getPtrTo<RAY_IDX_U32>(),
Expand Down

0 comments on commit 72fb12c

Please sign in to comment.