dont use tface hide or select anymore, since maintaining 2 sets of hide/select data for each face is annoying.
using mface->flag for both. Also found that the cdDM_drawMappedFaces and cdDM_drawFacesTex_common could get normals mixed up when rendering hidden faces. because hidden/invisible faces used continue without advancing to the next normal.
This commit is contained in:
@@ -223,9 +223,8 @@ def mesh2uv(me_s, PREF_SEL_FACES_ONLY=False):
|
||||
material_list= []
|
||||
for me in me_s:
|
||||
me_materials= me.materials
|
||||
FACE_SEL= Blender.Mesh.FaceFlags.SELECT
|
||||
if PREF_SEL_FACES_ONLY:
|
||||
me_faces= [f for f in me.faces if f.flag & FACE_SEL]
|
||||
me_faces= [f for f in me.faces if f.sel]
|
||||
else:
|
||||
me_faces= me.faces
|
||||
|
||||
|
||||
Reference in New Issue
Block a user