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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user