Python operators

- simplified C operator API bpy.__ops__ since its wrapped by python now.
- needs the class to have an __idname__ rather then __name__ (like menus, headers)
- convert python names "console.exec" into blender names "CONSOLE_OT_exec" when registering (store the blender name as class.__idname_bl__, users scripters wont notice)
- bpy.props.props ???, removed
This commit is contained in:
2009-07-19 13:32:02 +00:00
parent 8efdb04817
commit d9a7e5144f
9 changed files with 99 additions and 128 deletions

View File

@@ -2550,7 +2550,7 @@ static struct PyMethodDef props_methods[] = {
#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef props_module = {
PyModuleDef_HEAD_INIT,
"bpyprops",
"bpy.props",
"",
-1,/* multiple "initialization" just copies the module dict. */
props_methods,
@@ -2567,9 +2567,6 @@ PyObject *BPY_rna_props( void )
submodule= Py_InitModule3( "bpy.props", props_methods, "" );
#endif
mod = PyModule_New("props");
PyModule_AddObject( submodule, "props", mod );
/* INCREF since its its assumed that all these functions return the
* module with a new ref like PyDict_New, since they are passed to
* PyModule_AddObject which steals a ref */