[Bf-blender-cvs] [3f572fe] master: Fix T43905: Crash happens when press Create Plane Track

Sergey Sharybin noreply at git.blender.org
Fri Mar 6 11:15:07 CET 2015


Commit: 3f572fe7d25032a37770e71bda20eb6c4cd23a8b
Author: Sergey Sharybin
Date:   Fri Mar 6 14:58:16 2015 +0500
Branches: master
https://developer.blender.org/rB3f572fe7d25032a37770e71bda20eb6c4cd23a8b

Fix T43905: Crash happens when press Create Plane Track

It was only happening on 32bit platforms because of alignment
differences when allocating class.

Now got rid of copy of eigen matricies stored by value in the
residual block which solves aligment issues and should also
give some unmeasurable speedup.

===================================================================

M	extern/libmv/libmv/multiview/homography.cc

===================================================================

diff --git a/extern/libmv/libmv/multiview/homography.cc b/extern/libmv/libmv/multiview/homography.cc
index ce533a3..a7679c3 100644
--- a/extern/libmv/libmv/multiview/homography.cc
+++ b/extern/libmv/libmv/multiview/homography.cc
@@ -209,8 +209,8 @@ class HomographySymmetricGeometricCostFunctor {
     return true;
   }
 
-  const Vec2 x_;
-  const Vec2 y_;
+  const Vec2 &x_;
+  const Vec2 &y_;
 };
 
 // Termination checking callback used for homography estimation.




More information about the Bf-blender-cvs mailing list