accessing rna 'default_flag' attribute of a non enum-flag could crash. eg.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 27 Nov 2011 14:13:10 +0000 (14:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 27 Nov 2011 14:13:10 +0000 (14:13 +0000)
commit985e77b723d558fc5aa14b317d18bafbaada3628
treed9894581f0c101b4b60e261ada97ca892aa0e8a0
parent7025f138948d15917fa4e8e469395eaebd32e6b3
accessing rna 'default_flag' attribute of a non enum-flag could crash. eg.

  bpy.types.Modifier.bl_rna.properties["type"].default_flag

now check the default/default_flag match the enum property they are used with.
source/blender/makesrna/intern/rna_rna.c