diff options
author | Ton Roosendaal <ton@blender.org> | 2009-06-02 20:40:15 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-06-02 20:40:15 +0400 |
commit | 67494dcad3330b1c056cef4b9aa21030c856cf5d (patch) | |
tree | 00a6221cfb06b7a70ba56af1ae946ea3c655753c /source | |
parent | bfbb7d5d73b228c6eff7b94190ee30a0da6e526f (diff) |
2.5
Crash; reading NULL pointer in poll() callback for UV edit.
Note: poll() is ONLY for checking context, not for changing things.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index be952558b6c..bec3cde7935 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -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; } |