[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45587] trunk/blender/source/blender/ editors/uvedit/uvedit_ops.c: bmesh - UV editor: check if faces are visible before hiding them (was done before bmesh merge ).

Campbell Barton ideasman42 at gmail.com
Fri Apr 13 08:54:37 CEST 2012


Revision: 45587
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45587
Author:   campbellbarton
Date:     2012-04-13 06:54:37 +0000 (Fri, 13 Apr 2012)
Log Message:
-----------
bmesh - UV editor: check if faces are visible before hiding them (was done before bmesh merge).

Modified Paths:
--------------
    trunk/blender/source/blender/editors/uvedit/uvedit_ops.c

Modified: trunk/blender/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_ops.c	2012-04-13 06:45:29 UTC (rev 45586)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_ops.c	2012-04-13 06:54:37 UTC (rev 45587)
@@ -2990,7 +2990,9 @@
 	BMLoop *l;
 	BMIter iter, liter;
 	MLoopUV *luv;
+	MTexPoly *tf;
 	int swap = RNA_boolean_get(op->ptr, "unselected");
+	Image *ima = sima ? sima->image : NULL;
 	int facemode = sima ? sima->flag & SI_SELACTFACE : 0;
 
 	if (ts->uv_flag & UV_SYNC_SELECTION) {
@@ -3003,6 +3005,12 @@
 	BM_ITER(efa, &iter, em->bm, BM_FACES_OF_MESH, NULL) {
 		int hide = 0;
 
+		tf = CustomData_bmesh_get(&em->bm->pdata, efa->head.data, CD_MTEXPOLY);
+
+		if (!uvedit_face_visible(scene, ima, efa, tf)) {
+			continue;
+		}
+
 		BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
 			luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
 




More information about the Bf-blender-cvs mailing list