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/
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user