Revision: 48915
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48915&view=rev
Author:   bob1961
Date:     2012-01-19 14:56:15 +0000 (Thu, 19 Jan 2012)
Log Message:
-----------
Need to initialize the view params in to_data_polygons.

Modified Paths:
--------------
    brlcad/trunk/src/libtclcad/tclcad_obj.c

Modified: brlcad/trunk/src/libtclcad/tclcad_obj.c
===================================================================
--- brlcad/trunk/src/libtclcad/tclcad_obj.c     2012-01-19 14:41:02 UTC (rev 
48914)
+++ brlcad/trunk/src/libtclcad/tclcad_obj.c     2012-01-19 14:56:15 UTC (rev 
48915)
@@ -3337,6 +3337,12 @@
     else
        gdpsp = &gdvp->gdv_view->gv_data_polygons;
 
+    gdpsp->gdps_scale = gdvp->gdv_view->gv_scale;
+    VMOVE(gdpsp->gdps_origin, gdvp->gdv_view->gv_center);
+    MAT_COPY(gdpsp->gdps_rotation, gdvp->gdv_view->gv_rotation);
+    MAT_COPY(gdpsp->gdps_model2view, gdvp->gdv_view->gv_model2view);
+    MAT_COPY(gdpsp->gdps_view2model, gdvp->gdv_view->gv_view2model);
+
     if (BU_STR_EQUAL(argv[2], "target_poly")) {
        if (argc == 3) {
            bu_vls_printf(gedp->ged_result_str, "%llu", 
gdpsp->gdps_target_polygon_i);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to