fix DFLPNG

This commit is contained in:
iperov 2018-12-25 19:49:19 +04:00
parent 6f99f14a6d
commit dba951412c

View file

@ -252,7 +252,7 @@ class DFLPNG(object):
inst = DFLPNG.load_raw (filename)
inst.fcwp_dict = inst.getDFLDictData()
if 'face_type' not in inst.fcwp_dict.keys():
if (inst.fcwp_dict is not None) and ('face_type' not in inst.fcwp_dict.keys()):
inst.fcwp_dict['face_type'] = FaceType.toString (FaceType.FULL)
if inst.fcwp_dict == None: