[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29279] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/view_map/FEdgeXDetector.cpp: Fix for a crash related to the feature edge detection at material boundaries .

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sun Jun 6 20:18:40 CEST 2010


Revision: 29279
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29279
Author:   kjym3
Date:     2010-06-06 20:18:39 +0200 (Sun, 06 Jun 2010)

Log Message:
-----------
Fix for a crash related to the feature edge detection at material boundaries.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/FEdgeXDetector.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/FEdgeXDetector.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/FEdgeXDetector.cpp	2010-06-06 18:12:19 UTC (rev 29278)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/FEdgeXDetector.cpp	2010-06-06 18:18:39 UTC (rev 29279)
@@ -700,7 +700,9 @@
 void FEdgeXDetector::ProcessMaterialBoundaryEdge(WXEdge *iEdge)
 {
   // check whether the edge is a material boundary?
-  if(iEdge->GetaFace()->frs_materialIndex() != iEdge->GetbFace()->frs_materialIndex()){
+  WFace *aFace = iEdge->GetaFace();
+  WFace *bFace = iEdge->GetbFace();
+  if(aFace && bFace && aFace->frs_materialIndex() != bFace->frs_materialIndex()){
     iEdge->AddNature(Nature::MATERIAL_BOUNDARY);
   }
 }





More information about the Bf-blender-cvs mailing list