Revision: 77065
          http://sourceforge.net/p/brlcad/code/77065
Author:   brlcad
Date:     2020-09-04 20:08:34 +0000 (Fri, 04 Sep 2020)
Log Message:
-----------
per the usage, the caller can say 'No' and still provide the remaining 4 region 
args, it just won't do anything with them.  don't make it a fatal condition if 
that happens, just continue, since the caller (as is the case in mged) may just 
be a script that passes defaults.  avoids the caller needing to conditionalize. 
 undoing the error avoids a failure editing non-region combs via the 
combination editor in mged.

Modified Paths:
--------------
    brlcad/trunk/src/libged/put_comb/put_comb.c

Modified: brlcad/trunk/src/libged/put_comb/put_comb.c
===================================================================
--- brlcad/trunk/src/libged/put_comb/put_comb.c 2020-09-04 18:35:13 UTC (rev 
77064)
+++ brlcad/trunk/src/libged/put_comb/put_comb.c 2020-09-04 20:08:34 UTC (rev 
77065)
@@ -561,12 +561,6 @@
        comb->GIFTmater = atoi(argv[9]);
        comb->los = atoi(argv[10]);
     } else {
-       if (argc != 7) {
-           bu_vls_printf(gedp->ged_result_str, "region_flag not set, incorrect 
number of arguments supplied.\n");
-           bu_vls_printf(gedp->ged_result_str, "Usage: %s %s", cmd_name, 
noregionusage);
-           return GED_ERROR;
-       }
-
        comb->region_flag = 0;
     }
 

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