Crash; reading NULL pointer in poll() callback for UV edit.

Note: poll() is ONLY for checking context, not for changing things.
This commit is contained in:
Ton Roosendaal
2009-06-02 16:40:15 +00:00
parent bfbb7d5d73
commit 67494dcad3

View File

@@ -242,7 +242,8 @@ int ED_operator_uvmap(bContext *C)
return 1;
}
BKE_mesh_end_editmesh(obedit->data, em);
if(obedit)
BKE_mesh_end_editmesh(obedit->data, em);
return 0;
}