dont use tface hide or select anymore, since maintaining 2 sets of hide/select data...
[blender.git] / release / scripts / vertexpaint_selfshadow_ao.py
index 31306ecaef81c1c2097fc4fc9a31236360fe196d..c083bc9e8b059cecc517ff7aa32454ac6132930d 100644 (file)
@@ -119,9 +119,9 @@ def vertexFakeAO(me, PREF_BLUR_ITERATIONS, PREF_BLUR_RADIUS, PREF_MIN_EDLEN, PRE
        tone_range= max_tone-min_tone
        if max_tone==min_tone:
                return
-       SELFLAG= Mesh.FaceFlags.SELECT
+       
        for f in me.faces:
-               if not PREF_SEL_ONLY or f.flag & SELFLAG:
+               if not PREF_SEL_ONLY or f.sel:
                        f_col= f.col
                        for i, v in enumerate(f):
                                col= f_col[i]