Browse Source

visual studio fix for deform_skeleton.cpp

Former-commit-id: 53c85dbdfb1f70ace22b51c8628eba493969faa7
Daniele Panozzo 10 years ago
parent
commit
a2c311add0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/igl/deform_skeleton.cpp

+ 3 - 1
include/igl/deform_skeleton.cpp

@@ -39,8 +39,10 @@ IGL_INLINE void igl::deform_skeleton(
   {
     BET(e,0) = 2*e;
     BET(e,1) = 2*e+1;
+    Matrix4d t;
+    t << T.block(e*4,0,4,3).transpose(), 0,0,0,0;
     Affine3d a;
-    a.matrix() = T.block(e*4,0,4,3).transpose();
+    a.matrix() = t;
     Vector3d c0 = C.row(BE(e,0));
     Vector3d c1 = C.row(BE(e,1));
     CT.row(2*e) =   a * c0;