[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41959] trunk/blender/source/blender/ editors/space_clip/tracking_ops.c: Set floor fails to make camera be in positive Z half-space if it was parented to other object .
Sergey Sharybin
sergey.vfx at gmail.com
Fri Nov 18 09:48:33 CET 2011
Revision: 41959
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41959
Author: nazgul
Date: 2011-11-18 08:48:33 +0000 (Fri, 18 Nov 2011)
Log Message:
-----------
Set floor fails to make camera be in positive Z half-space if it was parented to other object.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_clip/tracking_ops.c
Modified: trunk/blender/source/blender/editors/space_clip/tracking_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/tracking_ops.c 2011-11-18 08:42:44 UTC (rev 41958)
+++ trunk/blender/source/blender/editors/space_clip/tracking_ops.c 2011-11-18 08:48:33 UTC (rev 41959)
@@ -1919,11 +1919,10 @@
object_apply_mat4(parent, newmat, 0, 0);
/* make camera have positive z-coordinate */
- mul_v3_m4v3(vec[0], mat, camera->loc);
- if(camera->loc[2]<0) {
+ if(parent->loc[2]<0) {
invert_m4(rot);
mul_m4_m4m4(newmat, mat, rot);
- object_apply_mat4(camera, newmat, 0, 0);
+ object_apply_mat4(parent, newmat, 0, 0);
}
where_is_object(scene, parent);
More information about the Bf-blender-cvs
mailing list