Merging r40653 through r40847 from trunk into soc-2011-tomato
[blender.git] / source / blender / makesrna / intern / rna_ID.c
index ddd0fcc..4f5bc9a 100644 (file)
@@ -145,6 +145,7 @@ short RNA_type_to_ID_code(StructRNA *type)
        if(RNA_struct_is_a(type, &RNA_VectorFont)) return ID_VF;
        if(RNA_struct_is_a(type, &RNA_World)) return ID_WO;
        if(RNA_struct_is_a(type, &RNA_WindowManager)) return ID_WM;
+       if(RNA_struct_is_a(type, &RNA_MovieClip)) return ID_MC;
 
        return 0;
 }
@@ -179,6 +180,7 @@ StructRNA *ID_code_to_RNA_type(short idcode)
                case ID_VF: return &RNA_VectorFont;
                case ID_WO: return &RNA_World;
                case ID_WM: return &RNA_WindowManager;
+               case ID_MC: return &RNA_MovieClip;
                default: return &RNA_ID;
        }
 }