Revision: 45908
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45908&view=rev
Author:   brlcad
Date:     2011-08-10 20:20:33 +0000 (Wed, 10 Aug 2011)

Log Message:
-----------
prevent tessellation from crashing on primitives that don't have a callback set 
(like sketch)

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/nmg/nmg_bool.c

Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_bool.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_bool.c    2011-08-10 20:19:45 UTC 
(rev 45907)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_bool.c    2011-08-10 20:20:33 UTC 
(rev 45908)
@@ -1084,8 +1084,7 @@
 
     m = nmg_mm();
 
-    if (ip->idb_meth->ft_tessellate(
-           &r1, m, ip, tsp->ts_ttol, tsp->ts_tol) < 0) {
+    if (ip->idb_meth && ip->idb_meth->ft_tessellate && 
ip->idb_meth->ft_tessellate(&r1, m, ip, tsp->ts_ttol, tsp->ts_tol) < 0) {
        bu_log("nmg_booltree_leaf_tess(%s): tessellation failure\n", 
dp->d_namep);
        return TREE_NULL;
     }


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

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to