[Bf-blender-cvs] [77c70d4] gooseberry: Fix T43905: Crash happens when press Create Plane Track

Sergey Sharybin noreply at git.blender.org
Fri Mar 6 17:24:46 CET 2015


Commit: 77c70d4495b8030fa3e97cc00abab3f7f3ab125b
Author: Sergey Sharybin
Date:   Fri Mar 6 14:58:16 2015 +0500
Branches: gooseberry
https://developer.blender.org/rB77c70d4495b8030fa3e97cc00abab3f7f3ab125b

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