Fix: Cycles HIP-RT crash

The crash has been introduced by the refactor of lights to be
objects in #134846.

We can make such cases easier to catch at compile time in the
future, but for now applying the minimal patch which solves the
problem without going deeper into refactor.

Pull Request: https://projects.blender.org/blender/blender/pulls/135570
This commit is contained in:
Sergey Sharybin
2025-03-06 11:58:13 +01:00
committed by Sergey Sharybin
parent 3f6fca4297
commit 7397e6da29

View File

@@ -766,6 +766,9 @@ void HIPRTDevice::build_blas(BVHHIPRT *bvh, Geometry *geom, hiprtBuildOptions op
break;
}
case Geometry::LIGHT:
return;
default:
assert(geom_input.geomType != hiprtInvalidValue);
}