when python calls an operator, return a set from the operator flag, this matches the set that python operators themselves return. eg.

{'MODAL'} or... {'FINISHED'}
This commit is contained in:
2010-01-23 01:02:53 +00:00
parent 8dd14e1eed
commit 2f6a158d21
3 changed files with 27 additions and 2 deletions

View File

@@ -79,6 +79,8 @@ int pyrna_py_to_prop(PointerRNA *ptr, PropertyRNA *prop, void *data, PyObject *v
int pyrna_pydict_to_props(PointerRNA *ptr, PyObject *kw, int all_args, const char *error_prefix);
PyObject * pyrna_prop_to_py(PointerRNA *ptr, PropertyRNA *prop);
PyObject *pyrna_enum_bitfield_to_py(struct EnumPropertyItem *items, int value);
/* function for registering types */
PyObject *pyrna_basetype_register(PyObject *self, PyObject *args);
PyObject *pyrna_basetype_unregister(PyObject *self, PyObject *args);