Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ID.c
| Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | if (GS(id->name) == ID_VF) { | ||||
| VFont *vfont = (VFont *)id; | VFont *vfont = (VFont *)id; | ||||
| if (BKE_vfont_is_builtin(vfont)) | if (BKE_vfont_is_builtin(vfont)) | ||||
| return false; | return false; | ||||
| } | } | ||||
| return PROP_EDITABLE; | return PROP_EDITABLE; | ||||
| } | } | ||||
| short RNA_type_to_ID_code(StructRNA *type) | short RNA_type_to_ID_code(const StructRNA *type) | ||||
| { | { | ||||
| if (RNA_struct_is_a(type, &RNA_Action)) return ID_AC; | if (RNA_struct_is_a(type, &RNA_Action)) return ID_AC; | ||||
| if (RNA_struct_is_a(type, &RNA_Armature)) return ID_AR; | if (RNA_struct_is_a(type, &RNA_Armature)) return ID_AR; | ||||
| if (RNA_struct_is_a(type, &RNA_Brush)) return ID_BR; | if (RNA_struct_is_a(type, &RNA_Brush)) return ID_BR; | ||||
| if (RNA_struct_is_a(type, &RNA_CacheFile)) return ID_CF; | if (RNA_struct_is_a(type, &RNA_CacheFile)) return ID_CF; | ||||
| if (RNA_struct_is_a(type, &RNA_Camera)) return ID_CA; | if (RNA_struct_is_a(type, &RNA_Camera)) return ID_CA; | ||||
| if (RNA_struct_is_a(type, &RNA_Curve)) return ID_CU; | if (RNA_struct_is_a(type, &RNA_Curve)) return ID_CU; | ||||
| if (RNA_struct_is_a(type, &RNA_GreasePencil)) return ID_GD; | if (RNA_struct_is_a(type, &RNA_GreasePencil)) return ID_GD; | ||||
| ▲ Show 20 Lines • Show All 958 Lines • Show Last 20 Lines | |||||