changed some {} to {0}, these were causing errors on msvc. also got rid of some...
authorJoseph Eagar <joeedh@gmail.com>
Sun, 19 Apr 2009 20:09:31 +0000 (20:09 +0000)
committerJoseph Eagar <joeedh@gmail.com>
Sun, 19 Apr 2009 20:09:31 +0000 (20:09 +0000)
source/blender/editors/include/ED_mesh.h
source/blender/editors/interface/interface_layout.c
source/blender/makesrna/intern/rna_ui.c
source/blender/python/intern/bpy_rna.c

index e7c5c7a..6dff4ee 100644 (file)
@@ -84,11 +84,6 @@ void         ED_keymap_mesh(struct wmWindowManager *wm);
 
 /* editmesh.c */
 
-/*accessor functions for editmesh, all access to editmesh must
-  go through them!*/
-struct EditMesh *BKE_mesh_get_editmesh(struct Mesh *me);
-void BKE_mesh_end_editmesh(struct Mesh *me, struct EditMesh *em);
-
 void           ED_spacetypes_init(void);
 void           ED_keymap_mesh(struct wmWindowManager *wm);
 
index df17743..e005904 100644 (file)
@@ -1262,7 +1262,7 @@ void uiRegionHeaderLayout(const bContext *C, ARegion *ar)
        uiBlock *block;
        uiLayout *layout;
        HeaderType *ht;
-       Header header = {};
+       Header header = {0};
        float col[3];
        int xco, yco;
 
index c0b4fd2..4ad5273 100644 (file)
@@ -132,8 +132,8 @@ static void rna_Panel_unregister(const bContext *C, StructRNA *type)
 static StructRNA *rna_Panel_register(const bContext *C, ReportList *reports, void *data, StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free)
 {
        ARegionType *art;
-       PanelType *pt, dummypt = {};
-       Panel dummypanel= {};
+       PanelType *pt, dummypt = {0};
+       Panel dummypanel= {0};
        PointerRNA dummyptr;
        int have_function[2];
 
@@ -224,8 +224,8 @@ static void rna_Header_unregister(const bContext *C, StructRNA *type)
 static StructRNA *rna_Header_register(const bContext *C, ReportList *reports, void *data, StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free)
 {
        ARegionType *art;
-       HeaderType *ht, dummyht = {};
-       Header dummyheader= {};
+       HeaderType *ht, dummyht = {0};
+       Header dummyheader= {0};
        PointerRNA dummyhtr;
        int have_function[1];
 
index 627b240..0b05b11 100644 (file)
@@ -1010,6 +1010,7 @@ PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *data)
        PyObject *ret;
        int type = RNA_property_type(prop);
        int len = RNA_property_array_length(prop);
+
        int a;
 
        if(len > 0) {