makesrna was failing because of a buffer overrun from an error in r25949
This commit is contained in:
@@ -553,7 +553,7 @@ static StructRNA* def_node(BlenderRNA *brna, int node_id)
|
||||
static EnumPropertyItem* alloc_node_type_items(int category)
|
||||
{
|
||||
int i;
|
||||
int count = 2;
|
||||
int count = 3;
|
||||
EnumPropertyItem *item, *items;
|
||||
|
||||
for(i=0; i<MaxNodes; i++)
|
||||
@@ -589,6 +589,8 @@ static EnumPropertyItem* alloc_node_type_items(int category)
|
||||
|
||||
item++;
|
||||
|
||||
/* NOTE!, increase 'count' when adding items here */
|
||||
|
||||
memset(item, 0, sizeof(EnumPropertyItem));
|
||||
|
||||
return items;
|
||||
|
||||
Reference in New Issue
Block a user