Revision: 78028
          http://sourceforge.net/p/brlcad/code/78028
Author:   starseeker
Date:     2020-12-19 18:00:42 +0000 (Sat, 19 Dec 2020)
Log Message:
-----------
Wrong level of indirection passing the struct to parsing was breaking reporting 
for MGED 'vars' command.  Also report rc setting.

Modified Paths:
--------------
    brlcad/trunk/NEWS
    brlcad/trunk/src/mged/set.c

Modified: brlcad/trunk/NEWS
===================================================================
--- brlcad/trunk/NEWS   2020-12-19 17:41:08 UTC (rev 78027)
+++ brlcad/trunk/NEWS   2020-12-19 18:00:42 UTC (rev 78028)
@@ -13,6 +13,7 @@
 --- 2020-xx-xx  Release 7.32.2                                     ---
 ----------------------------------------------------------------------
 
+* fixed reporting of MGED "vars" command - Cliff Yapp
 * updated MGED to not open non-.g-files as databases - Cliff Yapp
 * fixed problems with command I/O management in MGED - Cliff Yapp
 * added decimation control examples to facetize man page - Cliff Yapp

Modified: brlcad/trunk/src/mged/set.c
===================================================================
--- brlcad/trunk/src/mged/set.c 2020-12-19 17:41:08 UTC (rev 78027)
+++ brlcad/trunk/src/mged/set.c 2020-12-19 18:00:42 UTC (rev 78028)
@@ -97,6 +97,7 @@
 #define MV_O(_m) bu_offsetof(struct _mged_variables, _m)
 #define LINE RT_MAXLINE
 struct bu_structparse mged_vparse[] = {
+    {"%d", 1, "rc",                    MV_O(mv_rc),                    
BU_STRUCTPARSE_FUNC_NULL, NULL, NULL },
     {"%d", 1, "autosize",              MV_O(mv_autosize),              
BU_STRUCTPARSE_FUNC_NULL, NULL, NULL },
     {"%d", 1, "rateknobs",             MV_O(mv_rateknobs),             
BU_STRUCTPARSE_FUNC_NULL, NULL, NULL },
     {"%d", 1, "sliders",               MV_O(mv_sliders),               
set_scroll_private, NULL, NULL },
@@ -293,7 +294,7 @@
     }
 
     mged_vls_struct_parse_old(&vls, "mged variables", mged_vparse,
-                             (char *)&mged_variables, argc, argv);
+                             (char *)mged_variables, argc, argv);
     Tcl_AppendResult(interp, bu_vls_addr(&vls), (char *)NULL);
     bu_vls_free(&vls);
 

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to