From 4385add665643dfa8946fd8f73cd6c81db8008f3 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 3 Jun 2010 08:41:40 +0000 Subject: 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. --- source/blender/editors/object/object_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/object/object_edit.c') diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 1127d9ab444..8afed42758a 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -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; -- cgit v1.2.3