[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45452] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/view_map/Silhouette.h: Fix for broken face normals in FEdgeSharp and FEdgeSmooth, resulting from
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sat Apr 7 02:37:02 CEST 2012
Revision: 45452
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45452
Author: kjym3
Date: 2012-04-07 00:37:01 +0000 (Sat, 07 Apr 2012)
Log Message:
-----------
Fix for broken face normals in FEdgeSharp and FEdgeSmooth, resulting from
splitting of FEdges at 2D intersections (i.e., at TVertices).
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Silhouette.h
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Silhouette.h
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Silhouette.h 2012-04-06 22:18:42 UTC (rev 45451)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/view_map/Silhouette.h 2012-04-07 00:37:01 UTC (rev 45452)
@@ -1310,11 +1310,14 @@
newEdge = new FEdgeSmooth(ioNewVertex, B);
FEdgeSmooth * se = dynamic_cast<FEdgeSmooth*>(newEdge);
FEdgeSmooth * fes = dynamic_cast<FEdgeSmooth*>(ioEdge);
+ se->setNormal(fes->normal());
se->setFrsMaterialIndex(fes->frs_materialIndex());
}else{
newEdge = new FEdgeSharp(ioNewVertex, B);
FEdgeSharp * se = dynamic_cast<FEdgeSharp*>(newEdge);
FEdgeSharp * fes = dynamic_cast<FEdgeSharp*>(ioEdge);
+ se->setNormalA(fes->normalA());
+ se->setNormalB(fes->normalB());
se->setaFrsMaterialIndex(fes->aFrsMaterialIndex());
se->setbFrsMaterialIndex(fes->bFrsMaterialIndex());
}
More information about the Bf-blender-cvs
mailing list