fix [#34113] operator_menu_enum() - Tooltip not showing descriptions
Python wasn't able to set 'OperatorType.prop', which is used by uiButGetStrInfo(). add 'bl_property' to python operators which is assigned to OperatorType.prop when registering. (api docs coming next)
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
PyObject *bpy_intern_str_register;
|
||||
PyObject *bpy_intern_str_unregister;
|
||||
PyObject *bpy_intern_str_bl_rna;
|
||||
PyObject *bpy_intern_str_bl_property;
|
||||
PyObject *bpy_intern_str_order;
|
||||
PyObject *bpy_intern_str_attr;
|
||||
PyObject *bpy_intern_str___slots__;
|
||||
@@ -46,6 +47,7 @@ void bpy_intern_string_init(void)
|
||||
bpy_intern_str_register = PyUnicode_FromString("register");
|
||||
bpy_intern_str_unregister = PyUnicode_FromString("unregister");
|
||||
bpy_intern_str_bl_rna = PyUnicode_FromString("bl_rna");
|
||||
bpy_intern_str_bl_property = PyUnicode_FromString("bl_property");
|
||||
bpy_intern_str_order = PyUnicode_FromString("order");
|
||||
bpy_intern_str_attr = PyUnicode_FromString("attr");
|
||||
bpy_intern_str___slots__ = PyUnicode_FromString("__slots__");
|
||||
@@ -58,6 +60,7 @@ void bpy_intern_string_exit(void)
|
||||
Py_DECREF(bpy_intern_str_register);
|
||||
Py_DECREF(bpy_intern_str_unregister);
|
||||
Py_DECREF(bpy_intern_str_bl_rna);
|
||||
Py_DECREF(bpy_intern_str_bl_property);
|
||||
Py_DECREF(bpy_intern_str_order);
|
||||
Py_DECREF(bpy_intern_str_attr);
|
||||
Py_DECREF(bpy_intern_str___slots__);
|
||||
|
Reference in New Issue
Block a user