add option so operators can be called with a flag, currently the only flag is to respect hidden geometry.

this is useful for bmesh tools that operate in object mode or for modifiers which would previously use hidden faces in some cases.
This commit is contained in:
Campbell Barton
2012-07-21 00:58:02 +00:00
parent 16516238e2
commit 90d215535e
24 changed files with 156 additions and 118 deletions

View File

@@ -109,7 +109,8 @@ static PyObject *pyrna_op_call(BPy_BMeshOpFunc *self, PyObject *args, PyObject *
}
/* TODO - error check this!, though we do the error check on attribute access */
BMO_op_init(bm, &bmop, self->opname);
/* TODO - make flags optional */
BMO_op_init(bm, &bmop, BMO_FLAG_DEFAULTS, self->opname);
if (kw && PyDict_Size(kw) > 0) {
/* setup properties, see bpy_rna.c: pyrna_py_to_prop()