Merging r37732 through r37862 from trunk into soc-2011-tomato
[blender.git] / source / blender / makesrna / intern / rna_ID.c
index 3ce84e3a19f91a9bc037541080bd3ae9ad728aca..efe2ada9ad6eb41a48b4c3c8f68a63426ec83d0a 100644 (file)
@@ -142,6 +142,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_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;
 }
 
        return 0;
 }
@@ -175,6 +176,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_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;
        }
 }
                default: return &RNA_ID;
        }
 }