Merged changes in the trunk up to revision 32684.
[blender.git] / source / blender / makesrna / intern / rna_ID.c
index 8681067061a129ea64e40557ea78189f6d7fb92e..e885fad6b8eede0f16200a367a74f0e877f936af 100644 (file)
@@ -29,6 +29,7 @@
 #include "RNA_define.h"
 
 #include "DNA_ID.h"
+#include "DNA_vfont_types.h"
 
 #include "WM_types.h"
 
@@ -99,7 +100,8 @@ static int rna_ID_name_editable(PointerRNA *ptr)
        ID *id= (ID*)ptr->data;
        
        if (GS(id->name) == ID_VF) {
-               if (strcmp(id->name+2, "<builtin>")==0)
+               VFont *vf= (VFont *)id;
+               if (strcmp(vf->name, FO_BUILTIN_NAME)==0)
                        return 0;
        }