diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-20 13:34:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-20 13:35:24 +0300 |
commit | 057ba2eb68e57029ece6540cda9288911711e8ed (patch) | |
tree | cf054f87b2340ced23501a1f6257126f2fc5b8d1 /source/blender/editors/interface | |
parent | 789a259d71745b0f99e511add36b09ea69883ef5 (diff) |
Fix error generating toolbar tooltip
C code needed to be updated for module move.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_region_tooltip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_region_tooltip.c b/source/blender/editors/interface/interface_region_tooltip.c index 6bdcdf57f47..5782bb466f5 100644 --- a/source/blender/editors/interface/interface_region_tooltip.c +++ b/source/blender/editors/interface/interface_region_tooltip.c @@ -500,10 +500,10 @@ static uiTooltipData *ui_tooltip_data_from_tool(bContext *C, uiBut *but, bool is { /* Generate keymap in order to inspect it. * Note, we could make a utility to avoid the keymap generation part of this. */ - const char *expr_imports[] = {"bpy", "bl_ui", NULL}; + const char *expr_imports[] = {"bpy", "bl_keymap_utils", "bl_keymap_utils.keymap_from_toolbar", NULL}; const char *expr = ( "getattr(" - "bl_ui.space_toolsystem_common.keymap_from_context(" + "bl_keymap_utils.keymap_from_toolbar.generate(" "bpy.context, " "bpy.context.space_data.type), " "'as_pointer', lambda: 0)()"); |