Forráskód Böngészése

try to get rid of error for daniele

Former-commit-id: b603aefceebe84013c6732de454c39ec1d125a55
Alec Jacobson 10 éve
szülő
commit
6771435833
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      include/igl/opengl2/unproject.cpp

+ 2 - 1
include/igl/opengl2/unproject.cpp

@@ -33,7 +33,8 @@ IGL_INLINE void igl::opengl2::unproject(
   const Eigen::PlainObjectBase<Derivedwin> & win,
   Eigen::PlainObjectBase<Derivedobj> & obj)
 {
-  obj = igl::opengl2::unproject(win).template cast<typename Derivedobj::Scalar>();
+  const auto ret = igl::opengl2::unproject(win);
+  obj = ret.template cast<typename Derivedobj::Scalar>();
 }