svn merge -r36651:36672 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenkernel / intern / displist.c
index a3a91c3b4420a906dbd0056e58637a2f03fa1d51..b65392a9a4722464252a5ba0fe76969abaf805e8 100644 (file)
@@ -983,16 +983,7 @@ void filldisplist(ListBase *dispbase, ListBase *to, int flipnormal)
                        dl= dl->next;
                }
                
-               if(totvert && BLI_edgefill(0)) { // XXX (obedit && obedit->actcol)?(obedit->actcol-1):0)) {
-
-                       /* count faces  */
-                       tot= 0;
-                       efa= fillfacebase.first;
-                       while(efa) {
-                               tot++;
-                               efa= efa->next;
-                       }
-
+               if(totvert && (tot= BLI_edgefill(0))) { // XXX (obedit && obedit->actcol)?(obedit->actcol-1):0)) {
                        if(tot) {
                                dlnew= MEM_callocN(sizeof(DispList), "filldisplist");
                                dlnew->type= DL_INDEX3;