Revision: 33511
          http://brlcad.svn.sourceforge.net/brlcad/?rev=33511&view=rev
Author:   bob1961
Date:     2009-01-09 21:45:55 +0000 (Fri, 09 Jan 2009)

Log Message:
-----------
A little cleanup and a minor mod that fixes a solid edit illumination problem 
that crept in with the push to use libged.

Modified Paths:
--------------
    brlcad/trunk/src/mged/attach.c
    brlcad/trunk/src/mged/mged.c
    brlcad/trunk/src/mged/setup.c

Modified: brlcad/trunk/src/mged/attach.c
===================================================================
--- brlcad/trunk/src/mged/attach.c      2009-01-09 21:41:01 UTC (rev 33510)
+++ brlcad/trunk/src/mged/attach.c      2009-01-09 21:45:55 UTC (rev 33511)
@@ -688,9 +688,7 @@
     *view_state = *initial_dm_list->dml_view_state;                    /* 
struct copy */
     BU_GETSTRUCT(view_state->vs_gvp, ged_view);
     *view_state->vs_gvp = *initial_dm_list->dml_view_state->vs_gvp;    /* 
struct copy */
-#if 0
-    view_state->vs_gvp->gv_clientData = view_state;
-#endif
+    view_state->vs_gvp->gv_clientData = (genptr_t)view_state;
     view_state->vs_rc = 1;
     view_ring_init(curr_dm_list->dml_view_state, (struct _view_state *)NULL);
 

Modified: brlcad/trunk/src/mged/mged.c
===================================================================
--- brlcad/trunk/src/mged/mged.c        2009-01-09 21:41:01 UTC (rev 33510)
+++ brlcad/trunk/src/mged/mged.c        2009-01-09 21:45:55 UTC (rev 33511)
@@ -2376,7 +2376,6 @@
     struct _view_state *vsp = (struct _view_state *)clientData;
 
     if (state != ST_VIEW) {
-       bu_log("XXXmged_view_obj_callback: updating model2objview and 
objview2model\n");
        bn_mat_mul(vsp->vs_model2objview, gvp->gv_model2view, modelchanges);
        bn_mat_inv(vsp->vs_objview2model, vsp->vs_model2objview);
     }

Modified: brlcad/trunk/src/mged/setup.c
===================================================================
--- brlcad/trunk/src/mged/setup.c       2009-01-09 21:41:01 UTC (rev 33510)
+++ brlcad/trunk/src/mged/setup.c       2009-01-09 21:45:55 UTC (rev 33511)
@@ -558,9 +558,6 @@
 
     view_state->vs_gvp->gv_callback = mged_view_callback;
     view_state->vs_gvp->gv_clientData = (genptr_t)view_state;
-    view_state->vs_gvp->gv_scale = 500;
-    view_state->vs_gvp->gv_size = 2.0 * view_state->vs_gvp->gv_scale;
-    view_state->vs_gvp->gv_isize = 1.0 / view_state->vs_gvp->gv_size;
     MAT_DELTAS_GET_NEG(view_state->vs_orig_pos, view_state->vs_gvp->gv_center);
 
     /* register commands */


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

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to