Revision: 76453
          http://sourceforge.net/p/brlcad/code/76453
Author:   brlcad
Date:     2020-07-23 21:38:36 +0000 (Thu, 23 Jul 2020)
Log Message:
-----------
per user request, always write out the assembly name to a CREO_NAME attribute.  
this makes it easier to script and inspect, and it informs when the object name 
is later changed in BRL-CAD.

Modified Paths:
--------------
    brlcad/trunk/NEWS
    brlcad/trunk/src/external/Creo/assembly.cpp

Modified: brlcad/trunk/NEWS
===================================================================
--- brlcad/trunk/NEWS   2020-07-23 20:26:49 UTC (rev 76452)
+++ brlcad/trunk/NEWS   2020-07-23 21:38:36 UTC (rev 76453)
@@ -13,6 +13,7 @@
 --- 20XX-XX-XX  Release 7.3X.X                                     ---
 ----------------------------------------------------------------------
 
+* Creo converter always writes out CREO_NAME attribute - Sean Morrison
 * improved gdiff -F filtering option behavior - Cliff Yapp
 * improved gdiff command verbosity reporting options - Cliff Yapp
 * improved Combination Editor button behaviors in MGED - Sean Morrison

Modified: brlcad/trunk/src/external/Creo/assembly.cpp
===================================================================
--- brlcad/trunk/src/external/Creo/assembly.cpp 2020-07-23 20:26:49 UTC (rev 
76452)
+++ brlcad/trunk/src/external/Creo/assembly.cpp 2020-07-23 21:38:36 UTC (rev 
76453)
@@ -267,11 +267,9 @@
     struct bu_attribute_value_set avs;
     db5_get_attributes(cinfo->wdbp->dbip, &avs, dp);
 
-    /* Write the object ID as an attribute, if it isn't already being used as 
the object name */
+    /* Write the object ID as an attribute */
     obj_name = get_brlcad_name(cinfo, wname, NULL, N_CREO);
-    if (!BU_STR_EQUAL(bu_vls_addr(obj_name), bu_vls_addr(comb_name))) {
-       bu_avs_add(&avs, "CREO_NAME", bu_vls_addr(obj_name));
-    }
+    bu_avs_add(&avs, "CREO_NAME", bu_vls_addr(obj_name));
 
     ProWVerstamp cstamp;
     if (ProMdlVerstampGet(model, &cstamp) == PRO_TK_NO_ERROR) {

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