Revision: 51738
          http://brlcad.svn.sourceforge.net/brlcad/?rev=51738&view=rev
Author:   bob1961
Date:     2012-08-01 13:12:18 +0000 (Wed, 01 Aug 2012)
Log Message:
-----------
This fixes a bug in the "adjust" command where an rgb attribute could not be 
removed. db5_sync_comb_to_attr() was missing code to remove an invalid rgb. 
rt_comb_adjust() depends on the rgb getting removed when marked as invalid 
(i.e. when "invalid" or "none" is specified).

Modified Paths:
--------------
    brlcad/trunk/src/librt/db5_types.c

Modified: brlcad/trunk/src/librt/db5_types.c
===================================================================
--- brlcad/trunk/src/librt/db5_types.c  2012-08-01 08:47:43 UTC (rev 51737)
+++ brlcad/trunk/src/librt/db5_types.c  2012-08-01 13:12:18 UTC (rev 51738)
@@ -697,6 +697,8 @@
     if (comb->rgb_valid) {
        bu_vls_sprintf(&newval, "%d/%d/%d", comb->rgb[0], comb->rgb[1], 
comb->rgb[2]);
        (void)bu_avs_add_vls(avs, db5_standard_attribute(ATTR_COLOR), &newval);
+    } else {
+       bu_avs_remove(avs, db5_standard_attribute(ATTR_COLOR));
     }
 
     /* Shader - may be redundant */

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to