diff --git a/src/graph/RaytraceNode.cpp b/src/graph/RaytraceNode.cpp index 9abe5281..bae8cdf3 100644 --- a/src/graph/RaytraceNode.cpp +++ b/src/graph/RaytraceNode.cpp @@ -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(), .isHit = getPtrTo(), .rayIdx = getPtrTo(),