Revision: 44650
http://brlcad.svn.sourceforge.net/brlcad/?rev=44650&view=rev
Author: starseeker
Date: 2011-05-20 18:52:06 +0000 (Fri, 20 May 2011)
Log Message:
-----------
Try to make sure the comb data structure reflects the attributes.
Modified Paths:
--------------
brlcad/trunk/src/librt/db_tree.c
brlcad/trunk/src/librt/tree.c
Modified: brlcad/trunk/src/librt/db_tree.c
===================================================================
--- brlcad/trunk/src/librt/db_tree.c 2011-05-20 18:31:56 UTC (rev 44649)
+++ brlcad/trunk/src/librt/db_tree.c 2011-05-20 18:52:06 UTC (rev 44650)
@@ -1194,6 +1194,7 @@
comb = (struct rt_comb_internal *)intern.idb_ptr;
RT_CK_COMB(comb);
+ db5_sync_attr_to_comb(comb, &intern.idb_avs, dp->d_namep);
if ((is_region = db_apply_state_from_comb(&nts, pathp, comb)) < 0) {
db_free_db_tree_state(&nts);
curtree = TREE_NULL; /* FAIL */
Modified: brlcad/trunk/src/librt/tree.c
===================================================================
--- brlcad/trunk/src/librt/tree.c 2011-05-20 18:31:56 UTC (rev 44649)
+++ brlcad/trunk/src/librt/tree.c 2011-05-20 18:52:06 UTC (rev 44650)
@@ -190,6 +190,7 @@
i++;
}
if (dp && region_found) {
+ printf("full path: %s\n", db_path_to_string(pathp));
printf("name: %s\n", dp->d_namep);
bu_avs_init_empty(&avs);
if (!db5_get_attributes(tsp->ts_dbip, &avs, dp)) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits