0

added label metadata to rendermodes (no more ugly map labels)

This commit is contained in:
Aaron Griffith
2011-09-08 07:34:35 -04:00
parent bbb2a3943e
commit fb45fb3dff
10 changed files with 29 additions and 9 deletions

View File

@@ -312,6 +312,10 @@ PyObject *get_render_mode_info(PyObject *self, PyObject *args) {
PyDict_SetItemString(info, "name", tmp);
Py_DECREF(tmp);
tmp = PyString_FromString(render_modes[i]->label);
PyDict_SetItemString(info, "label", tmp);
Py_DECREF(tmp);
tmp = PyString_FromString(render_modes[i]->description);
PyDict_SetItemString(info, "description", tmp);
Py_DECREF(tmp);