diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-10 19:01:11 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-10 19:01:11 +0300 |
commit | c1506454ecb4630119ed7ce13b3f8cdfef6dcee0 (patch) | |
tree | 88c06a0f285ecbc2dc06fa30f604d4cab16dc431 /source/blender/editors/space_file/file_draw.c | |
parent | 8d37aaeca1f9dc74224da378cecd392fd1cf361b (diff) |
UI drag&drop: make code able to free dragpoin if needed.
Only for image and strings for now. Needed for incomming filebrowser work.
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 78638334338..7f96321f542 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -296,7 +296,7 @@ static void file_draw_icon(uiBlock *block, const char *path, int sx, int sy, int but = uiDefIconBut(block, UI_BTYPE_LABEL, 0, icon, x, y, width, height, NULL, 0.0f, 0.0f, 0.0f, 0.0f, ""); if (drag) { - UI_but_drag_set_path(but, path); + UI_but_drag_set_path(but, path, false); } } @@ -411,7 +411,7 @@ static void file_draw_preview(uiBlock *block, struct direntry *file, int sx, int /* dragregion */ if (drag) { but = uiDefBut(block, UI_BTYPE_LABEL, 0, "", xco, yco, ex, ey, NULL, 0.0, 0.0, 0, 0, ""); - UI_but_drag_set_image(but, file->path, get_file_icon(file), imb, scale); + UI_but_drag_set_image(but, file->path, get_file_icon(file), imb, scale, false); } glDisable(GL_BLEND); |