Skip to content
Snippets Groups Projects
Commit 0556e6a3 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Check for missing colour in clipping

parent 3a147430
No related branches found
No related tags found
No related merge requests found
Pipeline #29249 passed
......@@ -77,7 +77,7 @@ bool ClipScene::apply(ftl::rgbd::FrameSet &in, ftl::rgbd::FrameSet &out, cudaStr
auto sclip = clip;
sclip.origin = sclip.origin.getInverse() * pose;
if (!no_clip) {
if (clip_colour) {
if (clip_colour && f.hasChannel(Channel::Colour)) {
f.set<ftl::rgbd::VideoFrame>(Channel::Colour);
f.set<ftl::rgbd::VideoFrame>(Channel::Depth);
ftl::cuda::clipping(f.createTexture<float>(Channel::Depth), f.getTexture<uchar4>(Channel::Colour), f.getLeftCamera(), sclip, stream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment