Revision: 56528
http://sourceforge.net/p/brlcad/code/56528
Author: brlcad
Date: 2013-08-04 20:16:36 +0000 (Sun, 04 Aug 2013)
Log Message:
-----------
that remark was made in 1996... there's nothing temporary about this (or
literally everything could be called temporary), so update the code accordingly.
Modified Paths:
--------------
brlcad/trunk/src/libged/loadview.c
Modified: brlcad/trunk/src/libged/loadview.c
===================================================================
--- brlcad/trunk/src/libged/loadview.c 2013-08-04 19:51:10 UTC (rev 56527)
+++ brlcad/trunk/src/libged/loadview.c 2013-08-04 20:16:36 UTC (rev 56528)
@@ -298,20 +298,16 @@
VSUB2(dir, pt, _ged_eye_model);
VUNITIZE(dir);
-#if 1
/*
- At the moment bn_mat_lookat will return NAN's if the direction vector
- is aligned with the Z axis. The following is a temporary workaround.
- */
+ * At the moment bn_mat_lookat() will return NAN's if the
+ * direction vector is aligned with the Z axis. The following is a
+ * workaround.
+ */
{
- vect_t neg_Z_axis;
-
- VSET(neg_Z_axis, 0.0, 0.0, -1.0);
+ vect_t neg_Z_axis = VINIT_ZERO;
+ neg_Z_axis[Z] = -1.0;
bn_mat_fromto(_ged_viewrot, dir, neg_Z_axis,
&_ged_current_gedp->ged_wdbp->wdb_tol);
}
-#else
- bn_mat_lookat(_ged_viewrot, dir, yflip);
-#endif
/* Final processing is deferred until ged_cm_end(), but eye_pt
* must have been specified before here (for now)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits