]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/view.cpp
Adapt to changes in vector slicing and composing API
[r2c2.git] / source / 3d / view.cpp
index 8c35245b4d97dd1b6d6c27147fc9494d6827ebd8..2050f587ec08eebc143bfe6eae38204bb1cfe13c 100644 (file)
@@ -60,7 +60,7 @@ Ray View3D::create_ray(float x, float y) const
 {
        const GL::Vector3 &start = camera.get_position();
        GL::Vector4 ray = camera.unproject(GL::Vector4(x, y, 0, 0));
-       return Ray(start, Vector(ray));
+       return Ray(start, ray.slice<3>(0));
 }
 
 void View3D::compute_bounds(Vector &minp, Vector &maxp)