PROP_ENUM_NO_CONTEXT flag for rna properties, forcing enum item functions to be passe...
[blender.git] / source / blender / editors / mesh / editmesh_mods.c
index fc1e677b1746a24588511cf1c478b91002c88824..717b725387ad9b4f899de4873e14e76bb8e98532 100644 (file)
@@ -1260,6 +1260,10 @@ static EnumPropertyItem *select_similar_type_itemf(bContext *C, PointerRNA *ptr,
        Object *obedit= CTX_data_edit_object(C);
        EnumPropertyItem *item= NULL;
        int a, totitem= 0;
+
+       if (C == NULL) {
+               return prop_similar_types;
+       }
                
        if(obedit && obedit->type == OB_MESH) {
                EditMesh *em= BKE_mesh_get_editmesh(obedit->data);