2.5/RNA:
[blender.git] / source / blender / editors / interface / interface_regions.c
index b59db0556471ff2d8555b1fa8f3b8498c6772983..bf9217155247d1836eb9e440f467561f756b01d3 100644 (file)
@@ -396,7 +396,7 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
                char *str;
                opptr= uiButGetOperatorPtrRNA(but); /* allocated when needed, the button owns it */
 
-               str= WM_operator_pystring(but->optype, opptr, 0);
+               str= WM_operator_pystring(C, but->optype, opptr, 0);
 
                /* operator info */
                BLI_snprintf(data->lines[data->totline], sizeof(data->lines[0]), "Python: %s", str);