py api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
[blender.git] / source / blender / editors / space_buttons / buttons_context.c
index 4a2860335fe93e73aba688da8d26fb9e3bca49f1..309c5cfc2189bc95cbd7e64ed4fa033016622fb9 100644 (file)
@@ -925,7 +925,7 @@ void buttons_context_draw(const bContext *C, uiLayout *layout)
 
                if(ptr->data) {
                        icon= RNA_struct_ui_icon(ptr->type);
-                       name= RNA_struct_name_get_alloc(ptr, namebuf, sizeof(namebuf));
+                       name= RNA_struct_name_get_alloc(ptr, namebuf, sizeof(namebuf), NULL);
 
                        if(name) {
                                if(!ELEM(sbuts->mainb, BCONTEXT_RENDER, BCONTEXT_SCENE) && ptr->type == &RNA_Scene)