Revision: 49805
          http://brlcad.svn.sourceforge.net/brlcad/?rev=49805&view=rev
Author:   bob1961
Date:     2012-03-23 17:40:39 +0000 (Fri, 23 Mar 2012)
Log Message:
-----------
Modified libged/erase.c/eraseAllSubpathsFromSolidList() to remove display lists 
only when the corresponding solid is removed from the display.

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

Modified: brlcad/trunk/src/libged/erase.c
===================================================================
--- brlcad/trunk/src/libged/erase.c     2012-03-23 17:04:02 UTC (rev 49804)
+++ brlcad/trunk/src/libged/erase.c     2012-03-23 17:40:39 UTC (rev 49805)
@@ -345,15 +345,13 @@
     struct solid *sp;
     struct solid *nsp;
 
-    if (gedp->ged_free_vlist_callback != GED_FREE_VLIST_CALLBACK_PTR_NULL)
-       (*gedp->ged_free_vlist_callback)(BU_LIST_FIRST(solid, 
&gdlp->gdl_headSolid)->s_dlist,
-                                        BU_LIST_LAST(solid, 
&gdlp->gdl_headSolid)->s_dlist -
-                                        BU_LIST_FIRST(solid, 
&gdlp->gdl_headSolid)->s_dlist + 1);
-
     sp = BU_LIST_NEXT(solid, &gdlp->gdl_headSolid);
     while (BU_LIST_NOT_HEAD(sp, &gdlp->gdl_headSolid)) {
        nsp = BU_LIST_PNEXT(solid, sp);
        if (db_full_path_subset(&sp->s_fullpath, subpath, skip_first)) {
+           if (gedp->ged_free_vlist_callback != 
GED_FREE_VLIST_CALLBACK_PTR_NULL)
+               (*gedp->ged_free_vlist_callback)(sp->s_dlist, 1);
+
            BU_LIST_DEQUEUE(&sp->l);
            FREE_SOLID(sp, &_FreeSolid.l);
        }

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


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to