diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-09-13 07:56:30 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-09-13 07:56:30 +0400 |
commit | 69496abf1d91829afdfcb807e06a2f48f19ffbc3 (patch) | |
tree | 4c2dd2eb676e5241cc5a1d7b85d87ae7518ebd65 /source/blender/editors/interface/interface_layout.c | |
parent | 82a7b73d5aa4706d77028663ab35c0180d508751 (diff) |
Crash Fix: Sequencer Add->Effects->... menu crashed.
Unfortunately, this menu is now empty, but this shows that the sequencer code is probably doing something funky...
http://dpaste.com/92865/
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index bf449dba597..6211c79beca 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -718,7 +718,7 @@ void uiItemEnumO_string(uiLayout *layout, char *name, int icon, char *opname, ch /* enum lookup */ if((prop= RNA_struct_find_property(&ptr, propname))) { RNA_property_enum_items(layout->root->block->evil_C, &ptr, prop, &item, NULL, &free); - if(RNA_enum_value_from_id(item, value_str, &value)==0) { + if(item==NULL || RNA_enum_value_from_id(item, value_str, &value)==0) { if(free) MEM_freeN(item); printf("uiItemEnumO_string: %s.%s, enum %s not found.\n", RNA_struct_identifier(ptr.type), propname, value_str); return; |