diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-16 20:35:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-16 20:35:14 +0400 |
commit | 482dfa19a5051e8b927c6f1a8db76adac817a16c (patch) | |
tree | b4a9888b6ee3e1035878ea7ac7fb6cd5e5959de0 /source/blender/editors/object | |
parent | 13dcf69eee4f9ac8caa351fc2606b30c52f5eab3 (diff) |
simple crash fix
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 581b870d0b4..d4f2493be2b 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -7036,12 +7036,13 @@ static EnumPropertyItem *object_mode_set_itemsf(bContext *C, PointerRNA *ptr, in { EnumPropertyItem *input = object_mode_items; EnumPropertyItem *item= NULL; - Object *ob = CTX_data_active_object(C); + Object *ob; int totitem= 0; if(!C) /* needed for docs */ return object_mode_items; + ob = CTX_data_active_object(C); while(ob && input->identifier) { if((input->value == OB_MODE_EDIT && ((ob->type == OB_MESH) || (ob->type == OB_ARMATURE) || (ob->type == OB_CURVE) || (ob->type == OB_SURF) || |