Copy Game Properties Operator: fix for "default enum value" out of the range. I removed one item from the Enum and forgot to change the default.

This commit is contained in:
Dalai Felinto
2010-06-03 08:41:40 +00:00
parent 44845b8965
commit 4385add665

View File

@@ -2298,7 +2298,7 @@ void OBJECT_OT_game_property_copy(wmOperatorType *ot)
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
RNA_def_enum(ot->srna, "operation", game_properties_copy_operations, 4, "Operation", "");
RNA_def_enum(ot->srna, "operation", game_properties_copy_operations, 3, "Operation", "");
prop=RNA_def_enum(ot->srna, "property", gameprops_items, 0, "Property", "Properties to copy");
RNA_def_enum_funcs(prop, gameprops_itemf);
ot->prop=prop;