Image Panels
[blender.git] / source / blender / editors / uvedit / uvedit_ops.c
index 9051300e117cd4bf570ea35067616d4b11610c67..cb05109d984550451e85c26ddcfa31af4bbc7b48 100644 (file)
@@ -77,7 +77,7 @@ int ED_uvedit_test(Object *obedit)
        EditMesh *em;
        int ret;
 
-       if(obedit->type != OB_MESH)
+       if(!obedit || obedit->type != OB_MESH)
                return 0;
 
        em = BKE_mesh_get_editmesh(obedit->data);